Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding end of month for a given month 1

Status
Not open for further replies.

501blues

IS-IT--Management
Aug 1, 2002
9
US
Does VFP have a function to find the last day of the month? So if I typed in August it would know that August ended on 08/31/2004. I am working on build a program to do reports and was trying to make it as simple for the users as possible. The user types in a month (ie: August)and behind the scenes VFP gets the beginning date (08/01/2004) and ending date (08/31/2004) of that month and runs the report.
 
A quick search using the Keyword Search above returns this thread thread184-742958, and also faq184-3683.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
pY=year(date())
pM=month(date())

LastDay=gomonth(date(pY,pM,1),1)-1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top