• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date comparison...Help please!  RSS feed

 
Tokunbo Oke
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help please!

I have a field in my form known as dob, which is for entering date of birth. The format in which the user must enter the date is "dd-mmm-yyyy". Thus a sample valid date is: 12-jan-2005. I want to ensure that the date entered is never in the future. Can you please tell me the most efficient way to do this.

I am thinking of finding out if the date entered is greater than today. but I am not sure of how to do this with a date format of 12-jan-2005.


Thank you.

Dele
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
basic idea:




Eric
 
Tokunbo Oke
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric,

Thank you very much indeed for your answer, it is objective perfect!

Greatly appreciated.

Dele Oke
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!