Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Julian date
Message
From
23/10/2002 20:35:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/10/2002 20:23:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00714610
Message ID:
00714613
Views:
15
>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

Julian date is the number of days that passed from a day in the remote past - some 6000 years ago (?). If you want the number of days elapsed in the current year, subtract (for 2002):
? date() - {^2001-12-31}
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform