Questions tagged [react-dates]

An easily internationalizable, mobile-friendly datepicker library for the web developed by Airbnb.

An easily internationalizable, mobile-friendly datepicker library for the web developed by Airbnb.

155 questions
-1
votes
2 answers

In React how to convert UTC dateTime to more readable string inside the table

I have react component which showing records in the table. I have use 'useMemo' to define table structure and data. Some of its fields are date format which showing date like '2020-12-08T07:00:00Z'. I want to convert it to more friendly reading i.e.…
K.Z
  • 5,201
  • 25
  • 104
  • 240
-1
votes
1 answer

Is it possible to persistently display the react-dates calendar?

I'm trying to have Airbnb's react-dates library display the calendar persistently (i.e. not have it act like a drawer/modal that toggles it's visibility). I've looked through the documentation and noticed the appendToBody prop, but that just puts…
Metal Gabe
  • 51
  • 1
  • 7
-1
votes
1 answer

How to custom caption month and year in react-dates

please simple code that same this image Mycode date = { onChange: (date, target) => { console.log(target) this.setState({ [target]: date }) }} const defaultPropsFilterDate = { numberOfMonths: 1, showDefaultInputIcon: false, navPrev:…
Sa Varee
  • 1
  • 1
  • 3
-1
votes
2 answers

How to change react-dates datepicker's language to German?

I'm trying to change my to German. What am I doing wrong? render(){ moment.locale('de') return(
HarryTgerman
  • 107
  • 1
  • 5
  • 19
-1
votes
1 answer

How to disable multiple date in react-dates with moment range

How can I block dates in react-dates airbnb with moment date range? const BAD_DATES = [ moment.range('2018-04-15', 'YYYY-MM-DD', '2018-04-27', 'YYYY-MM-DD'), moment.range('2018-05-10', 'YYYY-MM-DD', '2018-05-20', 'YYYY-MM-DD'), ]; const…
1 2 3
10
11