i am having problem with the date object in java scripti want to convert a string entered by user in to date object.and can any1 tell me how can i validate for dates wheter it is lessthan or more than today's date.