Skip to content Skip to sidebar Skip to footer

Issue With Date.parse In Chrome

The implementation of Date.parse in Chrome has very unexpected behavior. For example, Date.parse('foo 2014') should ideally return NaN as it is not a proper date format. But in Chr

Solution 1:

You can test date string with regular expression before parse.


Post a Comment for "Issue With Date.parse In Chrome"