Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change a single character to a year?
Message
 
 
À
17/11/2002 21:21:25
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00723697
Message ID:
00723698
Vues:
19
Hi Henry,

One digit isn't enough to make relaible conversion because '2' could mean 1992, 2002, 2012 and so on.

>Hi All:
>
>I extract the data from a sdf file and populate a table and then process as follows:
>
>
mDayOfService = SUBSTR(ConvertThis.LineItem,53,2)
>mMonthOfService = SUBSTR(ConvertThis.LineItem,56,2)
>mYearOfService = SUBSTR(ConvertThis.LineItem,59,1) &&the document only provides 1 digit for the year
>
>How do I take the above information and convert it to read, say MM/DD/YYYY? Specially when only 1 digit of the year is available to me from teh source document.
>
>Thank you for your advise.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform