Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert the birth day?
Message
From
03/12/2002 02:03:31
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
03/12/2002 01:33:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728893
Message ID:
00728898
Views:
14
>One way is to build a string with the unambiguous date format {^yyyy-mm-dd} and then EVALUATE() it:
* Following assumes century is 19:
>* An unambiguous date will work with single-digit month and year e.g. {^1982-6-1}
>DateValue = EVALUATE("{^" + "19" + RIGHT(mDOB, 2) + "-" + LEFT(mDOB, LEN(mDOB) - 3) + "-" + "1" + "}")
Hi Al - thankyou for your response. This worked. I was even able to check the century by seeing if the year was greater than 99, which would then be the 2000 +.

Thanks again.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform