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

DateTime 1

Status
Not open for further replies.

JonathanNYC

IS-IT--Management
Mar 29, 2003
111
US
I have a field "pcm.surgdate"(DateTime) thatI would like to show in the report only by calendar year.

For example, I want 12/18/2006 to show as 2006 and 2/15/2004 to show as 2004, etc.

I am using Crystal Reports 10.0. Might someone recommend a formula that I might use.
 

YEAR({pcm.surgdate}) will give year part of the date

Thankyou
Keerthana
 
You don't even need a formula. If you go to format field->date->customize->set month to "None" and day to "None".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top