How would you approach date time guessing in javascript? Assuming the array provided would not contain conflicting formats.
const dateStringArr1 = ["2022-01-19 23:01:29+12", "2022-12-10 12:00:40+12"];
const dateStringArr2 = ["2022-13-01 23:01:29+12", "2022-20-09 12:00:40+12"];
// ref: https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
guessDateFormats(dateStringArr1);
// returns [
// {
// confidence: 100,
// format: "yyyy-MM-dd HH:mm:ssx",
// }
// ];
guessDateFormats(dateStringArr2);
// returns [
// {
// confidence: 100,
// format: "yyyy-dd-MM HH:mm:ssx",
// }
// ];