Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dates
Message
De
15/10/1999 13:35:02
 
 
À
15/10/1999 13:24:15
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Dates
Divers
Thread ID:
00276974
Message ID:
00276980
Vues:
28
I assume that all years are to be in the 1900's.
SCAN
   lnAt = At("/", MyDate)
   lcMonth = Left(MyDate, lnAt - 1)
   lnAt2 = At("/", MyDate, 2)
   lcDay = SubStr(MyDate, lnAt + 1, lnAt2 - lnAt - 1)
   lcYear = Str(1900 + Val(Right(MyDate, Len(MyDate) - lnAt2)), 4)
   REPLACE MyDate WITH lcYear + "/" + lcMonth + "/" + lcDay
ENDSCAN
HTH
>I have a character field with a date stored in it in the following format
>
>mm/dd/yy
>
>I need to get this to be in this format ccyymmdd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform