Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Julian date
Message
De
23/10/2002 23:11:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00714610
Message ID:
00714640
Vues:
34
Thanks Sergey - I might have to make you my honorary uncle since you have been so helpful to so many of us on this board.(s)

Thanks
Gaylen

>Yep, it's two last digits of the year and number of days from the begining of the same year.
ldDate = Date()
>lnJdays = ldDate - Date( Year(ldDate ),1,1) + 1
>lnJdate = ( YEAR(ldDate ) % 100 ) * 1000 + lnJdays
>? lnJdate, PADL( lnJdate, 5, "0")
>
>>I need to record a transaction date in julian date format (YYDDD). When I use sys(1) or sys(11) I get a number such as 2452571 for todays date. I assume the DDD is the number of days since January 1st, so I probably could subtract the julian number for January 1 from the transaction date.
>>
>>Anyone else have a better solutionm. The (YYDDD) is required to report insurance policy information to NCCI.
>>
>>Thanks
>>Gaylen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform