Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert two-digit year in date
Message
De
30/10/2007 17:05:25
 
 
À
30/10/2007 16:18:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01265173
Message ID:
01265195
Vues:
8
Also
SET CENTURY ON
SET CENTURY TO 19 ROLLOVER 20
? CTOD("01/01/50") && 01/01/1950
? CTOD("01/01/10") && 01/01/2010

This was introduce for the Y2K issue. Every think before today is in this century, and every thing after today date is considered last century.

>The Patient.ptDOB below is a 2-digit date. What is the simplest way to convert it to a 4-digit year date in a SQL statement? Thanks!
>
>
>PADR(THIS.Strip(TRANSFORM(Patient.PtDOB, '@T')), 30, ' ')   AS PID_07_00_DateOfBirth, ;
>
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform