New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct way to validate time #916
Comments
At the moment date-fns has no such functionality. |
Sorry, I confused your request with another and closed the issue by mistake. |
i'm experiencing this issue too
i guess this is wrong |
The same here. The only blocker for complete migration from Moment to date-fns for me is the Moment's strict parsing mode which catches incorrectly formatted date/time. |
Im also waiting for this |
I agree, this is badly needed functionality. |
I also need it, is it planned or something ? |
any news on this??? |
@kossnocorp Can I handle this issue?? |
- add strict digits patterns and utils - strictly parse the digits according to the options fixed date-fns#916
Hi guys, thanks for the impressive work on this library. I'm looking to replace
moment
entirely across 4 large projects my team and I are working on. For validating the format of a time string, we do this withmoment
in some places:Using
date-fns
, I gave this a try:Maybe I'm not using the right method to achieve this, but I haven't found anything else in the docs and #326 is what inspired me to try
parse
. What's the correct way to accomplish what I'm looking for here? Thank you!The text was updated successfully, but these errors were encountered: