Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Julian
Message
From
16/03/2001 08:04:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/03/2001 07:56:20
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Julian
Miscellaneous
Thread ID:
00485797
Message ID:
00485801
Views:
13
>I need to return the day of the year from a function.
>
>i.e. 01/01/2001 = 1, 02/01/2001 = 2, 31/12/2001 = 365
>
>This needs to take leap years into consideration.
>
>Your help is much appreciated.
>
>Thanks
>
>Robin Das

lnDayOfYear = ldDate - ctod('^'+str(year(ldDate)-1,4)+'/12/31')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform