Socket
Socket
Sign inDemoInstall

react-dtpicker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dtpicker

React Date Time Picker


Version published
Maintainers
1
Created
Source

Date Time Picker

Greenkeeper badge DeepScan Grade

The calendar is written using the React library. Can be used both as a common calendar, and as a date time picker with range. There is a possibility to choose a date by days, months, years and decades. The date can be changed in the input.

DateTimePicker

Usage

  1. git clone https://github.com/YozhikM/dtpicker.git
  2. npm install
  3. npm start or yarn start
  4. npm test or yarn test

To use static typing, make sure that you have installed Flow.

API

highlight

Highlights the days. By default is new Date(). It can be a single date or an array of dates

value

Displayed months on the calendar. By default is new Date()

time

When the value is set to true, the time in hours and minutes will be displayed, as well as the ability to change it. By default is false

isSingleCalendar

When set to true, a single calendar will be displayed without the ability to select a date range. By default is false

DateTimePicker

Locales

To work with dates, use the library date-fns. Localization can be changed in a file src/components/Calendar/format.js

FAQs

Package last updated on 02 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc