The date must be in the IETF date syntax format (RFC2822, section 3.3), for example, Mon, December 25, 1995 13:30:00 GMT or Mon, December 25, 1995 13:30:00 GMT + 0430 ".
Read more: Date.parse ()
Surprisingly, this should also be done for the current (2017) versions of IE (11.x) and FF (56.x) so that Date.parse works correctly.
Picard
source share