Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8959259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:23:41+00:00 2026-06-15T15:23:41+00:00

After reading this question – which also provides links to documentation , I still

  • 0

After reading this question – which also provides links to documentation , I still have a question about the documentation.

MDN : Date.parse

A string representing an RFC2822 or ISO 8601 date.

Ok , RFC2282 :

date-time       =       [ day-of-week "," ] date FWS time [CFWS]
day-of-week     =       ([FWS] day-name) / obs-day-of-week
day-name        =       "Mon" / "Tue" / "Wed" / "Thu" /
                       "Fri" / "Sat" / "Sun"

date            =       day month year
year            =       4*DIGIT / obs-year
month           =       (FWS month-name FWS) / obs-month
month-name      =       "Jan" / "Feb" / "Mar" / "Apr" /
                        "May" / "Jun" / "Jul" / "Aug" /
                        "Sep" / "Oct" / "Nov" / "Dec"

day             =       ([FWS] 1*2DIGIT) / obs-day

Now – ISO8601

 Year:
      YYYY (eg 1997)
   Year and month:
      YYYY-MM (eg 1997-07)
   Complete date:
      YYYY-MM-DD (eg 1997-07-16)

Ok.

Questions :

  • MDN provided a pattern sample (which is working) "Dec 25, 1995" which is not found in 2282 nor in ISO .
    How come this sample works ? the order must be day month year ( according to 2282) .

  • the separators in the standards are [space] ( in 2282) and [-] in ISO.

    So why this sample works ( cross browser) ? Date.parse("2011/11/23")

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:23:42+00:00Added an answer on June 15, 2026 at 3:23 pm

    For Date.parse, have a look at the EcmaScript specification, section 15.9.4.2:

    The String may be interpreted as a local time, a UTC time, or a time
    in some other time zone, depending on the contents of the String. The
    function first attempts to parse the format of the String according to
    the rules called out in Date Time String Format (15.9.1.15). If the
    String does not conform to that format the function may fall back to
    any implementation-specific heuristics or implementation-specific date
    formats
    . Unrecognizable Strings or dates containing illegal element
    values in the format String shall cause Date.parse to return NaN.

    So, MDN’s Mozilla-specific documentation is quite near that. The official “EcmaScript Date Time String Format” is a subset of ISO 8601, otherwise Gecko browsers try to interpret it as RFC 2822 or even something else (this might include "Dec 25, 1995"). I strongly suspect that "2011/11/23" really works cross-browser, although it might be true for recent versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few questions about this after reading the iPhone documentation on it:
After reading this , I still have a question : I use this code
After reading this discussion and this article , I still have this question. Let's
After reading this SO question and noting the consensus about just how evil Thread.Sleep()
After reading this question I started to wonder: is it possible to have a
After reading this question , I have another similar question. Is there a simple
After long investigations and reading this question I still didn't get a good solution
After reading this question I have this rake task: desc Import sales task :import_sales
After reading this question regarding Linux: Open Terminal From Eclipse I have the same
After reading this question, I need to clear up some things. IQueryable<Customer> custs =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.