How can I convert normal date 2012.08.10 to unix timestamp in javascript?
2012.08.10
Fiddle: http://jsfiddle.net/J2pWj/ I\'ve se
You can use Date.parse(), but the input formats that it accepts are implementation-dependent. However, if you can convert the date to ISO format (YYYY-MM-DD), most implementations should understand it.
See Why does Date.parse give incorrect results?.