Crystal Reports: Time cut off from date-time field

By | June 28, 2024

Crystal Reports is a business intelligence tool that creates custom reports by capturing data from multiple sources. The tool offers features such as data access, report design, data formatting, report viewing, and application integration. In Sage X3, we have various standard reports for almost every screen, which are developed in Crystal Reports.
Recently, we had a requirement from one of our client in Sage X3. They wanted the work order creation date and time in the Material Issue Notes (BSM) standard report. In the database, there is already a field named ‘CREDATTIME’ with a date-time data type. We are trying to fetch this field in the report, but only the date part is being displayed. We tried to format this field in Crystal Reports, but it does not show any option to display the time.
When we tried adding the same database date-time field in a newly created report, the field displayed both the date and time parts correctly. The above-mentioned issue occurs when a report was created in Crystal Reports 8 or earlier, and the report option “Convert Date-Time Field” was set to only show the date.
The report option to convert a date-time field to a date or a string no longer exists in Crystal Reports 9 and above. However, if the report was created in an older version and this option was used, it will honor the setting and display it in those reports.
To modify the setting, follow the steps below:


New Stuff: Dashboard Filtering in Sage Enterprise Intelligence(SEI)

Fig 01 MATERIAL ISSUE NOTES (BSM) REPORT
Fig 01 MATERIAL ISSUE NOTES (BSM) REPORT

Step 2: Go to the File menu, and under the File menu, select the “Report” option. In the “Report Options” window, for the option “Convert Date-Time Field”, select “To Date-Time”. Now the field will appear on the report with the date-time data type. For better understanding refer the below screenshots.

Fig 02 File menu - Report Options
Fig 02 File menu – Report Options

Fig 03 Report Options
Fig 03 Report Options

Step 3: Click on “OK”. Save the report and deploy it in desired folder you will get a desired output as shown in below figure.

Fig 04 Output
Fig 04 Output

In this way, we can display both date and time part in older version of crystal report by following simple steps in crystal report as mentioned in this blog.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience and expertise, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.

Greytrix has some unique integration solutions developed for Sage CRM with Sage ERPs namely Sage X3Sage IntacctSage 100Sage 500, and Sage 300. We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users, and Sage PSG worldwide. Greytrix helps in the migration of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes addons like  Greytrix Business ManagerSage CRM Project ManagerSage CRM Resource PlannerSage CRM Contract ManagerSage CRM Event ManagerSage CRM Budget PlannerGmail IntegrationSage CRM Mobile Service SignatureSage CRM CTI Framework.

Greytrix is a recognized Sage Champion Partner for GUMU™ Sage X3 – Sage CRM integration listed on Sage Marketplace and Sage CRM – Sage Intacct integration listed on Sage Intacct Marketplace. The GUMU™ Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for the processing and execution of application programs at the click of a button.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.