Why do javascript dates have to be so shitty?

Can anyone explain why 'Feb 18, 1977' is in the local timezone but '1977-02-18' is UTC?

  • 2
    I assume it's because '1977-02-18' gets parsed as an ISO standard date, but why not parse 'Feb 18, 1977' the same way and save everyone some pain?
  • 2
    Dates should always be parsed in a standard format and converted to the appropriate culture only when displayed to the user.
Add Comment