As the function format.parse() parses a string using the date format set in the preferences of the user, you run the risk of having a different format compared to the field-value.
If you know the format, I'd use standard javascript functions to create a "new Date()" instead. Or use the moment.js library to parse the date instead.