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

1086toJSONString vs toISOString

Expand Messages
  • geoffrey.mcgill
    Jul 4, 2008
      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.