Loading ...
Sorry, an error occurred while loading the content.

toJSONString vs toISOString

Expand Messages
  • geoffrey.mcgill
    Mr. Crockford, In your Recommendations for the Fourth Edition of the ECMAScript Programming Language Specification
    Message 1 of 1 , Jul 4 11:30 AM
    • 0 Attachment
      Mr. Crockford,

      In your "Recommendations for the Fourth Edition of the ECMAScript
      Programming Language Specification"
      (http://www.crockford.com/javascript/recommend.html) post you mention
      two additions to the Date object...

      1. date.toJSONString()
      2. date.toISOString()

      Can you elaborate on the what you see as the return difference between
      the two? Would toISOString use UTC and toJSONString use local time?

      Any insight you can provide would be helpful.
    Your message has been successfully submitted and would be delivered to recipients shortly.