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 3788352
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:59:07+00:00 2026-05-19T11:59:07+00:00

I’m getting a date string in the form 2011-01-27T04:59:00Z from a web service call.

  • 0

I’m getting a date string in the form "2011-01-27T04:59:00Z" from a web service call. Firefox and Chrome have no problem parsing the string with var d = new Date("2011-01-27T04:59:00Z"), but Safari and IE won’t stand for it.

I can parse the string myself and feed it to Date.parse() or Date.UTC(), but I’m wondering why (1) such a disparity exists among browsers in something so basic as a Date object, and (2) why a public API would return a date string in a format that is rejected by Safari and (especially) IE.

  • 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-05-19T11:59:07+00:00Added an answer on May 19, 2026 at 11:59 am

    For you two questions, I would say

    1. It’s a relic from pre-Browser War I. ECMAScript spec was poorly written, and browser supports whatever they (don’t) want to.
    2. It’s ISO 8601 format, invented years after Javascript Date object. Even in php it was added after php 5.0. Date object was original design to take RFC 2822 format.

    Corrections per comments:

    1. Date.prototype.parse was introduced without a specification that state the date format it should support. Even when it was standardized in ECMAScript 3, the spec didn’t define what date format it should support. In Dec. 2009, ECMAScript 5 defined that Date should support ISO 8601 format as specified in the question, yet for released versions, at time of writing, only Gecko/Firefox implemented the feature. (Webkit had implemented in the nightly version from my test)
    2. For unknown reason, even though ISO 8601 was written in 1988, it was not until recently the web protocols/programming languages had begun support the format. PHP supported the format in date() function only after version 5. At the beginning of the Internet, protocols are used to take time in RFC 822/2822 format, which is human-readable for English users.
    3. In my opinion, an API should use Unix time to describe time if it’s only intend for machines.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a JSP page retrieving data and when single or double quotes are
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.