MomentJS: how to parse dates in MM/DD/YYYY & DD/MM/YYYY

Viewed 15872

How can i use moment.js in both: Australia & USA time formats?

For example:

07/08/2017 - is good for both time formats, but!

30/08/2017 - is invalid for moment.js, but i can have such dateTime

You can check it here:

http://jsfiddle.net/rLjQx/2135/

3 Answers
Related