Monday, May 20, 2024
54
rated 0 times [  55] [ 1]  / answers: 1 / hits: 174591  / 14 Years ago, thu, july 29, 2010, 12:00:00

How do I convert 07/26/2010 to a UNIX timestamp using Javascript?


More From » javascript-framework

 Answers
10

You can create a Date object, and call getTime on it:



new Date(2010, 6, 26).getTime() / 1000

[#96074] Monday, July 26, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tyreese

Total Points: 739
Total Questions: 95
Total Answers: 98

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;