I’ve txtStartDate control like that format : 09.03.2012
I want to compare txtStartDate value CurrentDate. if txtStartDate bigger than CurrentDate, i want to return true. how to to this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Dates in javascript suck. I recommend using this library FWIW, http://www.datejs.com/
Specifically http://code.google.com/p/datejs/wiki/APIDocumentation#compare
and related
Also see
http://code.google.com/p/datejs/wiki/APIDocumentation#parse for actually converting the text to a date object.