Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding Dates
Message
From
02/07/2002 09:27:34
 
 
To
02/07/2002 09:08:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00674408
Message ID:
00674413
Views:
21
>I need to programatically find the date of the last day of the previous 11 months based on the current date.

this any good ?
local d, i
d = date()

for i = 1 to 11
	d = bomonth(d) -1
	? d
endfor

*---------------------------------------------------------------------------
function	bomonth(d)
	return d+1-day(d)
endfunc
*---------------------------------------------------------------------------
function	eomonth(d)
	return gomonth(bomonth(d),1)-1
endfunc
*---------------------------------------------------------------------------
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform