1

Retrieved DateTextBox value looks like:

Thu Jan 01 1970 17:17:33 GMT+0100 (W. Europe Standard Time)

What is the best way to convert this into UNIX timestamp?

0leg
  • 13,464
  • 16
  • 70
  • 94

1 Answers1

2

var unixtime = Date.parse("24-Nov-2009 17:57:35").getTime()/1000

Sasha
  • 644
  • 8
  • 22
  • its an example http://stackoverflow.com/questions/11893083/convert-normal-date-to-unix-timestamp – Sasha Dec 09 '14 at 16:28