Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Julian date
Message
De
09/08/2004 16:15:22
 
 
À
09/08/2004 05:31:04
Ashish Patel
Hindustan Petroleum
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00931697
Message ID:
00931863
Vues:
13
I use the following function to get 5 digit julian date. Just pass it a date
LPARAMETERS peff_date

 yr = RIGHT(STR(YEAR(peff_date)),2)
 jday = STR(VAL(SYS(11,peff_date)) - VAL(SYS(11,DATE(year(peff_date)-1,12,31)))) 
 julian_date =  ALLTRIM(yr) +PADL(ALLTRIM(jday),3,"0")

 RETURN julian_date
Gaylen




>Hi all,
>
>I am using Visual Foxpro 6.0 and I want to convert Julain Date (format CYYDDD : C = Century, YY = Year, DDD = Days 1 to 366) to dd/mm/yyyy. Pl. Help. Thanks in Advance.
>
>
>Regards
>
>Ashish
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform