Skip to content
Prev 343269 / 398506 Next

DateTime wrong when exporting to csv in R

Hi

If you really need to have minutes and seconds etc in excel then use a
package that can write datetime columns that excel can read eg. access
rather that csv.
Microsoft is well known for changing dates and date formats - remember excel
is a worksheet application not a database - caveat emptor.

If you use a formatted date that excel can recognize then excel has less of
a tendency to change it.

Datetime is a pain in any language because of the irregularity of time.
Beware MS does not get it right if you are using dates from ca 1890 to 1910

Duncan


Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Sneha Bishnoi
Sent: Wednesday, 20 August 2014 22:14
To: Saurabh Agrawal
Cc: r-help
Subject: Re: [R] DateTime wrong when exporting to csv in R

Tried that..does not help :(



On Wed, Aug 20, 2014 at 8:03 AM, Saurabh Agrawal <sagrawal at idrcglobal.com>
wrote: