Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Day of Year
Message
From
18/05/2004 09:57:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/05/2004 09:10:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00904885
Message ID:
00904907
Views:
11
>You can substract the first day of the year from the curranet date
>
> FUNCTION DayOfTheYear(dDate)
>   SET DATE GERMAN
>   fday = CTOD("01.01."+STR(YEAR(dDate),4))
>RETURN dDate - fDay + 1
>
I believe that if VFP6 or later is available, the use of CTOD() should be discouraged, in favor of the safer, and easier, date() function.
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