parse a JSON Date in JavaScript

 

There is no standard representation of data in JSON format.you can use  the following methods to Create json and desterilize json 

 

var date = new Date();

// date object
console.log(date);

// date object to json
var json = JSON.stringify(date);

// date JSON to date OBJ
console.log(new Date(json)); 

Tags:

Share:

Related posts