vuejs-datepicker
vuejs-datepicker copied to clipboard
Custom parsing for dates
This is a possible fix for #597
Coverage remained the same at 100.0% when pulling 1cb26707649c6ba63ad3d6b55f2b4d1019ef10ba on tnolli:features/typed-dates-custom-parsing into 7cc1c3229d95afecbbe0ac723872b99d192599d4 on charliekassel:master.
@SylannBin thanks for the code review; I applied your suggestions (almost entirelly, Ijust moved the default to DateInput instead of Datepicker),
OK I just spent an hour debugging this, only to arrive at the same solution (we need a custom parsing function). Any chances this can get merged (or reasons not to)?
Hello ! Also facing this problem using this lib, is it possible to merge ?
This feature not only solves a bunch of potential parsing issues but it also enables new use cases out of the box, such as:
- Triggering validation errors (which occur during the parse function).
- Contextual date parsing. For instance in a
fromDate
-toDate
range, I would like 1980 to be parsed as 1980/01/01 infromDate
and parsed as1908/12/31
intoDate
.
Hopefully this gets merged soon.
First of all, thanks @charliekassel for all your work on this. It's awesome!
I think this pr could close a huge amount of issues. Just for example:
- https://github.com/charliekassel/vuejs-datepicker/issues/486
- https://github.com/charliekassel/vuejs-datepicker/issues/583
- https://github.com/charliekassel/vuejs-datepicker/issues/597
- https://github.com/charliekassel/vuejs-datepicker/issues/616
- https://github.com/charliekassel/vuejs-datepicker/issues/636
- https://github.com/charliekassel/vuejs-datepicker/issues/677
- https://github.com/charliekassel/vuejs-datepicker/issues/678
- https://github.com/charliekassel/vuejs-datepicker/issues/733
- https://github.com/charliekassel/vuejs-datepicker/issues/767
The equivalent pr for delegating formatting dates was merged the same day it was opened! https://github.com/charliekassel/vuejs-datepicker/pull/232 This has been open for 9 months now, and the last comment was 6 months ago.
Also, I would choose this over https://github.com/charliekassel/vuejs-datepicker/pull/536 because it lets users choose how the date is parsed, rather than changing the string that get's passed to Date.parse
.
I just read https://github.com/charliekassel/vuejs-datepicker/issues/679#issuecomment-463611830 and saw you haven't had time to work on this, and are considering co-maintainers, which I think is a great idea! Just wondering, is there any chance of this being merged soon?
Any news on this?
When is this feature merged? It is urgently needed for different projects.
Any updates on when/whether this PR will be merged? It blocks development in several projects at the moment, so an update would be very nice ;-) Does @tnolli have to rebase his branch first, before this can be merged?
Here! also waiting for the merge!!!
Any news?
Is there anything that we can do to help this getting merged?