Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating how many days have passed in a year?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00163001
Message ID:
00163024
Views:
22
You can easily calculate the first day of today's year. Try this:

CTOD('01/01/'+LTRIM(STR(YEAR(DATE()))))

>Thank you for the response, but I don't want to put the 1st date in. I would like it to be calculated for me. I want the computer to look at today's date, and tell me how many days have past since New Year's.
>
>TIA
>James McCourt
Previous
Reply
Map
View

Click here to load this message in the networking platform