Skip to content
Prev 343274 / 398506 Next

DateTime wrong when exporting to csv in R

On Aug 20, 2014, at 4:53 AM, Sneha Bishnoi wrote:

            
What does "same number form" mean?
PostDate                            Status                 ArrTime              NumGuests
2014-08-14 16:13:08.850       O                    2012-01-13 00:00:00.000    6
2014-08-14 16:13:08.850       A
The reason you are asked to post in plain text is to avoid the line wrapping and other mangling of data that html formatting causes. I've reformatted your posting to be what appears to be a very incomplete representation of your file.

I substituted tabs for the varying number of space
-- opened and empty excel workbook
-- formatted the first and third columns with a custom format for a date-time in the POSIX standard format (or a close as I can get to that in Excel, anyway)  as illustrated in the attached .png file.



-- open the tab-separated file.

Dates and times all agree.
David Winsemius
Alameda, CA, USA