Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
I'm trying to compare the selected dates for equivalence but it's not working. What an I missing?
if(date1.getSelectedDate() > date2.getSelectedDate()) - works
if(date1.getSelectedDate() == date2.getSelectedDate()) - does not work
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
getSelectedDate returns a JavaScript Date object. You will need to refer to JavaScript documentation on how to compare two JavaScript Date objects.
Thanks!
|