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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First/Last Day of the Month 1

Status
Not open for further replies.

pvwdr

MIS
Jan 16, 2003
38
US
Given a date, 2/5/03, how can I quickly determine the first and last day of the month.

If given 2/5/03, I need to get 2/1/03 and 2/28/03.
The only way I can figure to do it is tear the string apart and do a series of IF statements ... are there any functions that give those dates based on any date given?

Thanks,
Bill
 
? dateSerial(Year(Date), Month(Date), 1)
2/1/03
? dateSerial(Year(Date), Month(Date) + 1, 0)
2/28/03

MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Searching for employment in all the wrong places


MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top