Moment.js | Docs
If you don't know the exact format of an input string, but know it could be one of many, you can use an array of formats. This is the same as String + Format, only it will try to match the input to multiple formats. moment("12-25-1995", ["MM-DD-YYYY", "YY...