[SERVER-6725] Add Date.prototype.toISOString() Created: 07/Aug/12  Updated: 11/Jul/16  Resolved: 19/Feb/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.3.1

Type: New Feature Priority: Major - P3
Reporter: Stennie Steneker (Inactive) Assignee: Stennie Steneker (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

JavaScript 1.8 provides a convenience method Date.prototype.toISOString() but this isn't currently available in the mongo shell. Would be useful for printing ISODates.



 Comments   
Comment by Stennie Steneker (Inactive) [ 19/Feb/13 ]

Fixed with the change to V8 as default JavaScript engine

Comment by Stennie Steneker (Inactive) [ 07/Aug/12 ]

Mozilla docs include an implementation for engines which don't support this yet:
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString

Generated at Thu Feb 08 03:12:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.