Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate the number of days since the beginning of year
Message
From
19/04/1998 21:03:13
Michel Lalonde
Laboratoire Médical Biron
Lachine, Quebec, Canada
 
 
To
19/04/1998 20:55:10
Michel Lalonde
Laboratoire Médical Biron
Lachine, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092480
Message ID:
00093283
Views:
35
>>Your formula depends on SET DATE.
>>
>>Here is one that doesn't depend on SET DATE:
>>
>>ldDate - gomonth(ldDate, - month(ldDate) + 1) + day(ldDate)
>>
>>Vlad
>>
>>>? date()-ctod("01/01/"+right(str(year(date()),4),2))

Sorry for the last message

The "^" character force the YYYY.MM.DD format

? ldDate - ctod("^"+str(year(date()),4)+".01.01") + 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform