Parse dates explicitly because old browsers.
Fix syntax error in error message.