The first: is to convert the time generated in JSON format to the format of the time to see clearly
function (Cellval) {
var date = new Date (parseint ("Cellval.replace" ("/date", "" "). Replace (")/"," "), 10));
var month = Date.getmonth () + 1 < 10? "0" + (date.getmonth () + 1): Date.getmonth () + 1;
var currentdate = date.getdate () < 10? "0" + date.getdate (): Date.getdate ();
var hour = date.gethours () < 10? "0" + date.gethours (): Date.gethours ();
var minute = Date.getminutes () < 10? "0" + date.getminutes (): Date.getminutes ();
var second = Date.getseconds () < 10? "0" + date.getseconds (): Date.getseconds ();
return date.getfullyear () + "/" + month + "/" + currentdate + "" + Hour + ":" + Minute + ":" + second;
}
* Description: Cellval is the value to be converted, and time is converted in JSON format
Second: Use JS to get time daily
var today = new Date ();//Create Time Object
var nowday = today.getfullyear () + "/" + (Today.getmonth () + 1) + "/" + today.getdate () + "" + today.gethours () + ":" + t Oday.getminutes () + ":" + today.getseconds ();