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

Create first of the month date from date field

Status
Not open for further replies.

UHsoccer

Programmer
Apr 24, 2003
139
US
I am using Crystal 8.5 and need a formula to create a date that always displays the first of that month date, such as:

field name is {forecast.CloseDate}

9/25/2004 -> 9/1/2004
12/16/2005 -> 12/1/2005

etc

Thanks in advance
 
You could use:

{forecast.CloseDate}-day({forecast.CloseDate})+1

-LB
 
Thanks, added to my report, but have trouble connecting to the data base.

Will let you know in the morning.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top