HI, all,
I was wondering can I can a char field like 01 Jan 02 (char9) over to a year field 02 in a crystal fromula field year so I can group fields by.
HOW DO YOU DO THIS
val(right(01 Jan 02,2))+2000 will return 2002, which is suitable for years beyond 1999, but I would suggest that you convert the text to a formula containing a date:
// @MyDate
cdate({MyTable.MyDateField})
Now use this formula to group by (you can set groups on dates to be by the year using the The Section Will Be Printed set to for each year in the grouping dialog).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.