Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(datepicker): fix validation for M! & d! #5376

Closed

Conversation

wesleycho
Copy link
Contributor

  • Fix display & validation for M! & d!

This fixes #5225 (tested on local docs).

- Fix display & validation for M! & d!
@Foxandxss
Copy link
Contributor

LGTM

@wesleycho wesleycho closed this in c3b1431 Feb 1, 2016
@wesleycho wesleycho deleted the fix/datepicker-validation branch February 1, 2016 16:15
@timonwong
Copy link

@Foxandxss @wesleycho
I don't know whether or not this is a bug, it seems that it will drop the text after last (right-most) formatting token, for example:

dateParser.filter(date, 'yyyy -');

returns only "2016", dropped " -", is that intended?

and:

dateParser.filter(date, 'yyyy - MM -');

returns only "2016 - 02".

@wesleycho
Copy link
Contributor Author

Hm, that sounds like a bug - can you open a new issue on that?

@timonwong
Copy link

@wesleycho
Ok: #5387

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

M!/d!/yyyy does not Validate in the Dateparser Example
3 participants