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

Date to Text - Formatting 1

Status
Not open for further replies.

dunkyn

Technical User
Apr 30, 2001
194
US
I am trying to extract the year out of a date, and make it a text string, so I can add it to a text description.
I want 2007, not 2,007. When I change the date to a string, the "," appears.

CStr ((Year ({cot31203.Maturity Date})))

How do I remedy the formatting? I changed the formatting when it was a date, but as soon as it becomes a string, it adds the ",".

TIA - Crystal is new to me.

 
totext(Year ({cot31203.Maturity Date}), "#")


Lisa
 
Thanks so much! What does the ('#') mean?
 
check crystal report help and indexed by totext, you will find it.

Ted
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top