Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert the birth day?
Message
De
03/12/2002 17:04:01
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
03/12/2002 13:57:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00728893
Message ID:
00729174
Vues:
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 +.
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform