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

Format ToText Date 1

Status
Not open for further replies.

dianemarie

Instructor
Jul 11, 2001
583
US
Hello, I have a report with a default subtitle, but sometimes people like to put their own subtitle in, so I use a formula. It includes dates, which I have to make ToText to go along with the rest of the text. How do I format the dates in the formula so that they say March 2003 instead of the ugly database date with minutes and seconds etc. Here's my formula, any input would be greatly appreciated. I got frustrated trying to figure it out using Crystal Help. Thank you.

if {?Overwrite Subtitle} = '*'
then
totext({?@Begin_Date})+' through '+totext({?@End_Date})
else
{?Overwrite Subtitle}
 
Try this:
Code:
if {?Overwrite Subtitle} = '*' 
then 
totext({?@Begin_Date},"MMMM yyyy")+' through '+totext({?@End_Date},"MMMM yyyy")
else 
{?Overwrite Subtitle}

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top