Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert the birth day?
Message
From
03/12/2002 13:57:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/12/2002 02:03:31
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728893
Message ID:
00729102
Views:
13
>>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 +.

Henry, you are definitely the candidate for the champion title for this year, and the category would be described as "Converting data from weird text formats". You seem to have luck to work with the weirdest. My sympathies.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform