javascript - Date to json number after date -


When I try to serialize on a javascript date object json, with JSON.stringify (), I get something

  "2014-10-27 t 15: 00: 00.000Z"  

What is T15 after 27? What is the way to always get T 000?

T that appears in the string indicates the beginning of the time element , Therefore, T15: 00: 00 , means 15 hours, 0 minutes and 0 seconds, so its THH: mm: ss

If you want to set from hours, minutes and seconds to 0, then you can use it with javascript, as

  var d = new date (); D.setHours (0,0,0,0);  

This will set the time for 00: 00: 00.000


Comments