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!

Year Displays with a comma 1

Status
Not open for further replies.

nb4884

IS-IT--Management
Aug 2, 2010
141
US
Hi All,

I have a formula to display current Year in Header.

@Year = (year(currentdate))

but this displays as 2,011.00

How do I display it as 2011

Thanks
 
nb4884,

You can simply right-click and format the formula field. If it is then imbedded in another Text Field, or used in another manner where this is not an option, change your formula to the following:

{@Year}
Code:
ToText(Year(CurrentDate),0,"")


Cheers!

Mike
---------------------------------------------------------------
"To be alive is to revel in the moments, in the sunrise and the sunset, in the sudden and brief episodes of love and adventure,
in the hours of companionship. It is, most of all, to never be paralyzed by your fears of a future that no one can foretell."
 
Thanks Mike, the field was not right click-able but the formula worked very well.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top