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

How do I change the format of the Year

Status
Not open for further replies.

rahulroy08

Programmer
Jul 3, 2007
58
US
Hi,

In my report I want to display the Month and year for a date entered by the user.

Say if the date entered is [1/1/2007]

My report should display

As of [bold] January 2007 [/bold]

And for that I'm using the following formula

Code:
MonthName(Month({?Start_Date})) + " " + totext(tonumber (Year({?Start_Date})))

But it displays as

As of [bold] January 2,007.00 [/bold]

How do I correct this..

Can any one suggest a better formula for this.


Thanks,

Uday.
 
Try:

MonthName(Month({?Start_Date})) + " " + totext(tonumber (Year({?Start_Date}),0,""))

The 0 is the number of decimals, the "" is the thousands seperator.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top