I'm trying to compare some Dates in javascript.
For some reason, I'm getting "Tue May 01 2012 16:43:03 GMT+0900 (JST) has no method 'getTime'"
Of course, strings don't have methods
I started with this code inside a callback, but it was failing at getTime()
on the line that creates var age
:
for (var i = 0; i
I've pared it down so my example page is literally just this:
date test
This is failing in Chrome 18.0.1025.168 and Firefox 13.0.
Screenshots of what I've tried:


So my question:
wth?
Do I have to use ParseDate()? Why isn't this working?