Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date to timestamp

// '02/13/2009 23:31:30' this format

function toTimestamp(strDate){
   var datum = Date.parse(strDate);
   return datum/1000;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #timestamp
ADD COMMENT
Topic
Name
7+9 =