I’m trying to only show the date portion of a string field.
This is the format of the string: STARTED:/ 03/23/1983 TIME:/ 03:12
I need to remove “STARTED:/” and “TIME:/ 03:12” and only show the date portion of the string:03/23/1983. What formula can I use to do that?
Thanks
The Crystal Reports help file is your friend and should be your first stop for simple questions on built-in functions and data types.
In CR strings are just stored as character arrays so you can access them like arrays – by index. So in your case, if you will always have the same string format (that is, the same number of characters, leading zeroes, etc.) then you can do something like this:
Alternatively, you could use the Mid() string function.