Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculate the number of days since the beginning of year
Message
From
16/04/1998 10:07:42
 
 
To
16/04/1998 09:45:18
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092480
Message ID:
00092499
Views:
28
In Edward's example, you might want to consider to use the 4 character year to be Y2K.
? date()-ctod("01/01/"+str(year(date()))

-myron kirby-
myronk@flash.net
------------------------------------------
>>>What would be the simpliest technique to calculate the number of days since the beginning of year?
>>
>>? date()-ctod("01/01/"+right(str(year(date()),4),2))
>
>I should have thought more about this calculation. :) Thanks for the help.
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform