datepicker icon indicating copy to clipboard operation
datepicker copied to clipboard

Customizable Date format and other things

Open asavin opened this issue 11 years ago • 2 comments

You can specify the format of the date you expect it to produce. Format is a string, which can be something like this:

  • "DD/MM/YYYY"
  • "YYYY-MM-DD"
  • "mm.dd.yy"

Order of month, day and year will be recognized by the component, divider symbol will also be honoured. You can ask for 2 digit year or 4 with "YY" or "YYYY" respectably.

asavin avatar Jan 26 '14 21:01 asavin

@charypar omg :D

asavin avatar Jan 26 '14 21:01 asavin

Oh, so since we opened this against upstream (oops), it might be worth describing what's going on. Sorry for the confusion, it was an honest mistake, but maybe you'll like our changes. This is what was added:

  • Value is now being set and retrieved as Date
  • CSS was improved to display background correctly
  • It's possible to click outside the datepicker to close it
  • Keyboard controls were added, specifically escape to close, enter to set value by hand
  • Datepicker emits events when date changes
  • Support for date format was added

Hope I got all of them.

charypar avatar Jan 26 '14 22:01 charypar