Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Date field exported to .CSV format Post Reply Post New Topic
Author Message
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Topic: Date field exported to .CSV format
     Posted: 02 Jul 2013 at 8:59am

Hi All,

We have a Date field showing format in MMDDYYY, after exporting the report to .CSV format date field is showing correctly.
we have changed the Date format to DDMMYYYY, after exporting the report to .CSV format some of the date fields are converted to General datatype and some of the date fields are showing Date datatype in MS Excel.
My datasource is SAP Tables, I have replicated the issue with using SAP BW Query also.
To replicate the issue at your end, create a report with a Date field and change the Date Order to DMY
and export the report to .CSV format and check the fileds allignment and data type.

Is this bug in Crystal Report?

i have converted the Date field to string using
" " + ToText({Date Field},"dd/MM/yyyy")

But I want to show the date fields data type as it is in .CSV format.

Do we have any solution for this?

Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
praveeng
Senior Member
Senior Member
Avatar

Joined: 11 Jul 2011
Online Status: Offline
Posts: 165
Quote praveeng Replybullet Posted: 08 Jul 2013 at 8:27am

I found reason that

"This is a problem with Excel. Because Excel expects MDY order on dates, the values that format as dates are the ones where the Day of the month is between 1 and 12, which is a valid month in MDY format. "
 
 
Praveen Guntuka,
praveen_guntuka@yahoo.com
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum