Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Days from the year beginning to dd/mm
Message
 
To
07/08/2007 04:54:26
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01246410
Message ID:
01246413
Views:
21
>Is there function in VFP or in contributions which for given number of days from the year beginning will return month or day of month it falls on or just a {date}.
>
>
>
>TIA
>Michael

I am not so sure what you asking for, but try this:
? DaysFromStart(123, 2005)
? DaysFromStart(123)
? DaysFromStart(123, 2008)

FUNCTION DaysFromStart(lnNumberOfDays, lnYear)

IF VARTYPE(lnYear) # [N]
   lnYear = YEAR(DATE())
ENDIF
IF VARTYPE(lnNumberOfDays) # [N]
   MessageBox([And what you want :-)?])
ENDIF

RETURN DATE(lnYear, 1, 1)+lnNumberOfDays
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform