Welcome Guest Search | Active Topics | Sign In | Register

?Compare calendar date on the client side Options
Joan Darling
Posted: Tuesday, January 6, 2015 4:39:40 PM
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
eo_support
Posted: Tuesday, January 6, 2015 4:52:15 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.