Closed mmurphy closed 5 years ago
allow converting dates that come from JSON strings to Date Objects e.g.
"fields": { "name": "Joe Bloggs", "DOB": { "$date": "2000-02-29T00:00:00Z" } }
would change the DOB field to new Date("2000-02-29T00:00:00Z")
DOB
new Date("2000-02-29T00:00:00Z")
invalid dates use the value that was passed instead of a Date Object e.g.
Date
"fields": { "name": "Joe Bloggs", "DOB": { "$date": "Jim" } }
would change the DOB field to "Jim"
"Jim"
allow converting dates that come from JSON strings to Date Objects e.g.
would change the
DOB
field tonew Date("2000-02-29T00:00:00Z")
invalid dates use the value that was passed instead of a
Date
Object e.g.would change the
DOB
field to"Jim"