Fixed JS date-format parsing.