What time format is this and how to reformat it using jQuery?

What time format is this and how can I reformat it using jQuery? This is from a publication from an XML podcast.

Mon, Jul 26, 2010 7:15:58 p.m. -0700

Is there an exact name for this date format? I didn’t see it for sure anywhere, and it puzzled me a little. I tried the plugin listed below, but it does not work correctly or accepts this date input.

+3
source share
2 answers

JS understands this format (RFC 1123):

javascript:alert(new Date(Date.parse('Mon, 26 Jul 2010 19:15:58 -0700')))

More details here: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse

+2
source

Source: https://habr.com/ru/post/1762031/


All Articles