can anybody spot any mistake in this function? .. This is a function which receives a string of type yyyy-mm-dd hh:mm:ss aa and converts to UTC and builds up a string ...
For some reason, the SOAP response from one of my WebService looks like this:
Where the date format is (YYYY/MM/DD) and the time is GMT
I'm not really sure how to convert ...
How can I convert a time in the format "YYYY-MM-DD hh:mm:ss" (e.g. "2011-07-15 13:18:52") to a UNIX timestamp?
date = new Date("2011-07-15").getTime() / 1000