CSV file + dates
thanks
Imac 2.8 24", Mac OS X (10.5.4)
Imac 2.8 24", Mac OS X (10.5.4)
KOENIG Yvan wrote:
• When you apply a date format, it changes the way the date is displayed on the screen, it doesn't change the way it is stored.
• If you really need that such format remains in the CSV file, you must convert your dates as strings.
I go in to inspector and change the date to the format of mmddyyyy. after I export it as a csv file, and try to open it up the date has changed back to a "Dec 19, 2004" format" I need it to stay in the mmddyyyy format for the program.
KOENIG Yvan wrote:
It appears that I wrongly read the original message.
R C-R wrote:
It is a little like the documentation for importing CSV files. It tells you Numbers "can also import files in comma-separated value (CSV) format" but leaves out the detail that the filename extension plays a part in how this is done. (If the extension is "csv" then Numbers imports each comma separated value into a separate a column; if it is say "txt" then everything up to the newline character goes into one cell. If the extension is missing completely, Numbers refuses to import the file at all.)
KOENIG Yvan wrote:
They forget that most of the CSV files generated in Europe use the semi-colon as separator to eliminate conflicts with our decimal comma.
R C-R wrote:
That actually shouldn't be necessary: as long as the data strings are enclosed in quotes, there should be no conflicts. But the real problem is (as I said) CSV isn't an official format, but a number of related ones, many of which predate any modern operating system or application. A few have become so entrenched over the years that they are seen as "the real standard," even though none can legitimately claim that distinction.
These choices where made to reduce the size of the files.
R C-R wrote:
Reducing file size almost always compromises data portability.
KOENIG Yvan wrote:
In this case, using TAB delimiters reduced the size but don't reduced portability.
I don't know the origin of CSV but it's a wonderful example of English imperialism : "it works for me English writer so it must be used by others too".
At this time, I'm just wondering why Numbers is exporting in CSV, not in TSV and why Bento is importing CSV, not TSV and of course why the two don't use the same definition of CSV.
It doesn't only because Numbers doesn't allow tabs in its data values, so there is no problem telling data from the delimiter when exporting from Numbers into certain other applications. If you were importing data into Numbers, or exporting to an application that allowed tabs in data values, portability would be compromised.
Let me smile, Numbers accepts TABs in cells.
I don't understand why a program allowing TABs in cells would be unable to export/import TSV.
Is it so difficult to use the scheme used with CSV? If a field contains a TAB, it would be enclosed between double quotes.
The first time I met a CSV file, it was one generated by a French version of Excel.
So, now I know that a format usable worldwide already exists.
(I used to have this problem with old versions of Filemaker, for example.)
I blame Apple because it is not consistent in it's own behavior.
R C-R wrote:
The point you seem unwilling to accept is that there is no one consistent behavior using simple delimiter separated schemes, now or in the future, that anyone can depend on for unambiguous data portability.
CSV file + dates