title: Parse string to Date in JavaScript with any format but specific locale for ambiguous cases
body: <p>Is there a JavaScript library that can parse strings to datetime as in e.g. C#? What I mean is a way such that I don't have to specify each date format that could occur (e.g. 1/19/2021, 2021-1-1, 1-Jan-21), but I can specify locale so that in ambiguous cases where multiple options are available right option would be chosen?
  E.g. in C# I can do something like this:</p>
  <pre><code>CultureInfo culture = new CultureInfo(&quot;en-GB&quot;);
  DateTime myDate = DateTime.Pare(myDateString, culture, DateTimeStyles.None);
  </code></pre>
  <p>This will know that 1/2/2021 is February 1st (and not January 2nd), but it will also properly parse 1/19/2021 (it will not throw exception because 19th month doesn't exist) and everything else.</p>