on ‎2022 Dec 09 8:25 PM
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?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.