View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
joel joel is offline
external usenet poster
 
Posts: 9,101
Default Importing .csv with #2000-04-06 10:15:00# date format field

The simpliest way to fix the problem is open the file with Notepad. Use menu
Edit - replace to remove the #. Put # in the From: box and put nothing in
the To: box. then save the file. It should read properly into excel after
the modification.

"FUBARinSFO" wrote:

Hi:

I've created a text file from an Excel sheet that ouputs range cell
data to a .csv. One of the fields is a time-datestamp. The file then
has a field in the format #2000-04-06 10:15:00#. (Used simple Write #n
statement to generate output lines)

When I either read the .csv directly with Excel, or open/import and
use Excel to id the field, it doesn't convert to date, even tho I
specify YMD on input -- it still has the format in the cell
#2000-04-06 10:15:00# .

I know I've seen somewhere how to fix this, I just can't remember
where, and can't find it here. I think this is the Microsoft Access
database date format for import.

Thanks in advance for any clues.

-- Roy Zider