While exporting Ad Hoc reports in CSV format (online or offline runs), the date format is not displayed properly in Microsoft Excel.
However, exports in XLS and XLSX display the dates in the expected format.
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental
SuccessFactors Ad Hoc reports
Reproducing the Issue
- Login to the instance and create an Ad Hoc report that includes date columns.
- Export the report in CSV format.
- Open the file in Microsoft Excel.
- The date format is not as expected in certain locales.
Example for a user whose local system's date format is set to mm/dd/yyyy format.
XLS and XLSX formats include the dates and also details about the format in which they have been saved.
But CSV is simply a database query's output in comma separated format and does not include details about the date format in which they should be displayed.
As a result, irrespective of the format the dates are stored in, Microsoft Excel assumes they are in the local system's date format and attempts to display them in the same.
Refer the previous section's example.
The behavior is expected, as long as there is a mismatch between the date format in which the report was exported and the date format set in the local system.
Hence for human usage, we suggest exporting the report in XLS or XSLX formats.
- A quick work around is to change the local system's date format. But this will have an impact on the other functionality as well.
- Another approach is to create a new spreadsheet file in Microsoft Excel and import the CSV file to this.
The following article from Microsoft explains the steps:
While importing data from the CSV file, the Text Import Wizard allows choosing the date format for desired columns and this will help set the correct date format to display.
The work arounds have been provided convenience purposes only.
SAP does not control, monitor or guarantee the information contained in the external sites.
, KBA , LOD-SF-ANA-ADH , Adhoc Reports & Report Builder , Problem