Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need YYYYDDD to DATE() function. Anyone?
Message
De
25/01/2001 13:17:32
 
 
À
25/01/2001 13:06:36
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00468591
Message ID:
00468638
Vues:
11
>>I have a DATE() to YYYYDDD function already but I received a file full of YYYYDDD instead of dates and need to get dates.
>>
>>Does anyone havce a quick algorithm/function already? Before I waste time reinventing the wheel.
>>
>>TIA
>
>ldNewDate = CTOD([01/01/] + LEFT(JulianField, 4)) + VAL(RIGHT(JulianField, 3)) - 1

Warning. Only works with SET DATE AMERICAN! (or DMY)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform