PC Review


Reply
Thread Tools Rate Thread

CSV file date format

 
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      13th Mar 2007
Hi,

(MS EXCEL 2002, Windows XP)

One of our users has a CSV file, with a date column. The date format in this
column is American, and needs to be in UK style format. We try highlighting
the column and selecting the correct format, but it makes no difference.

When a new date is added in British format, it is okay until the file is
saved, it then reverts to US.

Is there anyway to firstly change all the dates to UK format, and secondly
have them remain this way when the file is saved?

Thanks

Dave
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      13th Mar 2007
You can specify the date order (mdy or dmy or whatever), if you rename the .csv
file to .txt.

Then when you use File|Open, you'll get the text to columns wizard where you can
specify what you want.

Another option (untested) is to use an unambiguous date format: dd-mmmm-yyyy

As long as you're dealing with an English language user, I would guess that it
would work.


======
Another option--just save as a normal .xls file and share that????

David wrote:
>
> Hi,
>
> (MS EXCEL 2002, Windows XP)
>
> One of our users has a CSV file, with a date column. The date format in this
> column is American, and needs to be in UK style format. We try highlighting
> the column and selecting the correct format, but it makes no difference.
>
> When a new date is added in British format, it is okay until the file is
> saved, it then reverts to US.
>
> Is there anyway to firstly change all the dates to UK format, and secondly
> have them remain this way when the file is saved?
>
> Thanks
>
> Dave


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?RGF2aWQ=?=
Guest
Posts: n/a
 
      13th Mar 2007
Thanks mate, just need to know now how to prevent the dates being converted
back into US format when we save the file as a CSV.

Cheers

David

"Dave Peterson" wrote:

> You can specify the date order (mdy or dmy or whatever), if you rename the .csv
> file to .txt.
>
> Then when you use File|Open, you'll get the text to columns wizard where you can
> specify what you want.
>
> Another option (untested) is to use an unambiguous date format: dd-mmmm-yyyy
>
> As long as you're dealing with an English language user, I would guess that it
> would work.
>
>
> ======
> Another option--just save as a normal .xls file and share that????
>
> David wrote:
> >
> > Hi,
> >
> > (MS EXCEL 2002, Windows XP)
> >
> > One of our users has a CSV file, with a date column. The date format in this
> > column is American, and needs to be in UK style format. We try highlighting
> > the column and selecting the correct format, but it makes no difference.
> >
> > When a new date is added in British format, it is okay until the file is
> > saved, it then reverts to US.
> >
> > Is there anyway to firstly change all the dates to UK format, and secondly
> > have them remain this way when the file is saved?
> >
> > Thanks
> >
> > Dave

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      13th Mar 2007
You could fiddle with the user's regional settings--so that they match the
data. Then let them format the dates the way they want.

If you find a better way, please post back.

David wrote:
>
> Thanks mate, just need to know now how to prevent the dates being converted
> back into US format when we save the file as a CSV.
>
> Cheers
>
> David
>
> "Dave Peterson" wrote:
>
> > You can specify the date order (mdy or dmy or whatever), if you rename the .csv
> > file to .txt.
> >
> > Then when you use File|Open, you'll get the text to columns wizard where you can
> > specify what you want.
> >
> > Another option (untested) is to use an unambiguous date format: dd-mmmm-yyyy
> >
> > As long as you're dealing with an English language user, I would guess that it
> > would work.
> >
> >
> > ======
> > Another option--just save as a normal .xls file and share that????
> >
> > David wrote:
> > >
> > > Hi,
> > >
> > > (MS EXCEL 2002, Windows XP)
> > >
> > > One of our users has a CSV file, with a date column. The date format in this
> > > column is American, and needs to be in UK style format. We try highlighting
> > > the column and selecting the correct format, but it makes no difference.
> > >
> > > When a new date is added in British format, it is okay until the file is
> > > saved, it then reverts to US.
> > >
> > > Is there anyway to firstly change all the dates to UK format, and secondly
> > > have them remain this way when the file is saved?
> > >
> > > Thanks
> > >
> > > Dave

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date format error with CSV file FmEdit Microsoft Excel Programming 6 28th Jan 2010 03:04 PM
Ref a file in date format Microsoft Communities Microsoft Excel Discussion 2 1st Aug 2009 05:02 AM
How can I get date of file creation to XLS cell in date format? =?Utf-8?B?UmFkZWsgU2ltZWs=?= Microsoft Excel Worksheet Functions 3 8th Nov 2007 04:24 PM
Link .txt File - Date Format =?Utf-8?B?ZGFsbGlu?= Microsoft Access External Data 2 19th Oct 2005 11:15 PM
creating a file with date format Robin Microsoft Windows 2000 CMD Promt 3 16th Apr 2004 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 AM.