Let's say I have a array of date strings,
const a = ["11/23/2018","10/22/1992","02/02/1993","01/01/1990",...];
const b = ["12/01/2018","12/12/1992","24/09/1993","16/01/1990",...];
is there way to identify data format of each of these arrays, like
a => MM/DD/YYYY
b => DD/MM/YYYY
in javascript. I am not looking for a solution in vanila javascript, if you can point me to a solution using momentjs
or date-fns
It would be fine.
thank you, in advance.