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

Uppercase Date Month 2

Status
Not open for further replies.

glyph1

Programmer
Jun 15, 2007
26
0
0
Hello! I just had a (hopefully) simple question. Crystal Reports defaults the date to be lowercase and I need uppercase. I selected the format object and customize options and the formula, but I'm unsure how to distinguish the month as a string and convert it to uppercase. Any help would be greatly appreciated thank you!
 
My current formula:
Day ({Visitor.SecurityDate})
& " "
& uppercase(totext({Visitor.SecurityDate},"MMMM"))
& " "
& Year ({Visitor.SecurityDate})

Produces an undesirable result:
1.00 SEPTEMBER 2,007.00

Probably an error on my part, I did turn off the decimal places and thousand seperator for the field properties.
 
Use:

totext(Day ({Visitor.SecurityDate}),0,"")
& " "
& uppercase(totext({Visitor.SecurityDate},"MMMM"))
& " "
& totext(Year ({Visitor.SecurityDate}),0,"")

-LB
 
The 2 parameters LB uses are the number of decimals (0),and thousands seperator, "" meaning none.

You should post your entire requirements the first time or start new threads for other issues.

-k
 
You can simplify this formula to this to make it easier:

uppercase(totext({Visitor.SecurityDate},"d MMMM yyyy"))

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top