Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date comparison using javascript

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two text boxes where user enters dates. I want the end date to be greater than start date? How do I compare?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
date.parse works only if date is entered in format mon-day yyyy ?

How to comapare if dates entered are in mm/dd/yyyy format?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic