If the date format returned by JSON is/date (1199116800000)/, the reason is that the data type used by the server is datetime. If the string type is used, the normal time format is used,
Of course, it can also be processed in JS. There are many methods, such:
<Script language = "JavaScript" type = "text/JavaScript">
$ (Function (){
VaR date = "/date (1199116800000 )/";
Alert (dateformat (date); // call
});
Function dateformat (value ){
VaR date = new date (parseint (value. 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 hours = date. gethours () <10? "0" + date. gethours (): Date. gethours ();
VaR minutes = date. getminutes () <10? "0" + date. getminutes (): Date. getminutes ();
VaR seconds = date. getseconds () <10? "0" + date. getseconds (): Date. getseconds ();
Return date. getfullyear () + "/" + month + "/" + currentdate + "" + hours + ":" + minutes + ":" + seconds;
}
</SCRIPT>
In fact, it is only an integer part, such as:/date (1199116800000)/take 1199116800000, and then use VaR date = new date (1199116800000 );
Then date. Month () is followed by a string.