cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Year(currentdate)

Former Member
0 Likes
6,951

Hi!

Can someone tell me why ? I create a Crystal syntax with this= Year(currentdate) and it return it like a number field 2 011,00 instead of a date format,

Thanks

Diane

View Entire Topic
Former Member
0 Likes

Because the formula returns a number. You will need to format it to get rid of the comma and decimals by either formating the display of the formula or format it in the formula itself, making it a text field:

totext(year(currentdate)0,"")

Debi

Edited by: Debi Herbert on Mar 31, 2011 9:56 AM

Former Member
0 Likes

I tried that and was unsuccessful

(Error message claims I forgot the ")" and highlights the "0")

This works when I added a comma between the date field and the "0"

totext(year({Safety Notices.Safety~Date}),0,"")

Edited by: Anthony Colatorti on Mar 31, 2011 11:02 PM

Ask a Question