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

Calculating 1st date of month

Status
Not open for further replies.

mindsjrny

Technical User
Sep 19, 2005
1
US
I am looking to find the syntax used for a stored procedure running against an Informix database to calculate the 1st day of the month.

I have where row_date between ''09/01/2005'' AND today-1

What I would like to do is replace having to hard code the beginning date of the month to have the stored procedure to automatically calculate the date.
 
LET firstofmonth = mdy(month(somedate), 1, year(somedate));

should do the job
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top