Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating how many days have passed in a year?
Message
From
01/12/1998 19:27:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00163001
Message ID:
00163040
Views:
29
Use:

lnDays = ldMyDate - gomonth(ldMyDate, - month(ldMyDate) + 1) + day(ldMyDate)

It does not depend on SET DATE or other date settings.

Vlad

>Is there an easy way to calculate how many days have passed since New Year's? I want to make sure it takes consideration of leap year too.
>
>TIA,
>James McCourt
Previous
Reply
Map
View

Click here to load this message in the networking platform