Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
react-dtpicker
Advanced tools
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.
git clone https://github.com/YozhikM/dtpicker.git
npm install
npm start
or yarn start
npm test
or yarn test
To use static typing, make sure that you have installed Flow.
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
To work with dates, use the library date-fns. Localization can be changed in a file src/components/Calendar/format.js
FAQs
React Date Time Picker
We found that react-dtpicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.