on 05-16-2016 1:38 PM
Our reports are generated using Crystal Report 2008 Viewer, and can then be exported from there to Excel. However, our customers in regions where their date setting is DDMMYYYY are reporting problems with their dates when exporting the report to Excel. If the DDMMYYYY date is not a valid date in MMDDYYYY format (e.g. 31/03/2016 as March 31) then it appears correctly as 31/03/2016 in Excel. However, if it is also valid as MMDDYYYY (e.g. 01/03/2016 for March 1) then it appears in MMDDYYYY format as 03/01/2016 in Excel. This is only when exporting to Excel -- if the report is printed to screen, to the printer, to a PDF file, then the dates are correct.
All of the dates in our Crystal reports are formatted as Windows Default Short Format.
Any ideas?
Hi Julie,
Use totext function instead of date field. Probably something like this,
totext({timefield},"dd/MM/yyyy").
Date field export to .CSV format | SCN
check above link for more information.
--Praveen Guntuka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.