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

Dragan - I could not stop laughing as yet - and I like the title - but with so many gurus around I have no fear of facing the most evil types of text formats :)
- Ravi

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

Click here to load this message in the networking platform