PDA

View Full Version : how to compare dates



mypen
4 Sep 2010, 12:26 AM
i want comapare two dates first date is comming from database having formate of 'Y-m-d' and second date is user input in the form having formate 'd-m-Y'

Can someone please provide one example.

Thanks

Animal
4 Sep 2010, 12:58 AM
Date objects compare against each other in Javascript. You have converted them to Dates haven't you?

I mean we have NO IDEA AT ALL what you are doing, but I'm guessing that you are loading a Store.