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

ToText default format for DateTime values

afanofosc
Discoverer
0 Likes
1,235

I have a formula displayed in the top right corner of many reports called CurrentDateTimeString. The formula is ToText(CurrentDateTime). What I want to know is exactly what Windows OS regional settings are being used by Crystal to convert that DateTime to a string when no format is specified in the ToText function. Is this documented anywhere?

View Entire Topic
DellSC
Active Contributor
0 Likes

Another option instead of using ToText:

1. Put a text box on the report where you want to show the date time.

2. Pull the Data Date special field into the text box.

3. Put your cursor at the end of DataDate in the text box and add a space.

4. Pull the Data Time special field into the text box.

This will show the DateTime in the format that you want it.

-Dell

afanofosc
Discoverer
0 Likes

Changing the hundreds of report format files that we have is not an option. What I need is someone from SAP who knows to tell me what Crystal is using to decide how to format a DateTime value using ToText without a format specified. It should be using the ShortDatePattern and LongTimePattern that I am customizing but it is not.