1.0.4 โ€ข Published 2 years ago

@emranrastadi/react-datepicker v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A modern, beautiful, customizable date picker for React.

Installation ๐Ÿš€

npm i @emranrastadi/react-modern-calendar-datepicker

# or if you prefer Yarn:
yarn add @emranrastadi/react-modern-calendar-datepicker

new parameter for time picker

You can add this for active or deactive time-picker in calendar

 enableTime={true|false}

After enable time-picker , if you want to use date range , you can send fromTime and toTime by look likes value 19:17 by default value with from and to date. After select time with day , we will give you an object with four key and values :

{
  from : {
    year : 1398,
    month: 9,
    day: 21
  },
  to : {
    year : 1398,
    month: 9,
    day: 28
  },
  fromTime : '21:18',
  toTime: '18:18'
}

Minimum and Maximum date

Please if you wanna use minimum and maximum date, follow this structure:

  const minimumDate = {
    year:1401,
    month: 9,
    day: 8
  }
  const maximumDate = {
    year:1401,
    month: 9,
    day: 28
  }

You should know , localeโ€ is important for currect implementation. please sync date with your locale. You cann't use locale fa for AD date

Documentation ๐Ÿ“„

You can find documentation on the website.

The documentation is divided into several sections:

LICENSE

MIT