Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange date format in CSV
Message
From
12/08/2015 10:39:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
12/08/2015 10:31:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01623191
Message ID:
01623193
Views:
65
>I am trying reading a CSV using APPEND FROM, but the CSV contains a strange date format which cannot get recognized, any SET DATE I am trying does not work. In CSV it looks like this:
>
>2000-12-06
>
>Anybody has an idea to make the append work without the need to parse it line by line?


#1 Use regexp to manipulate the file to a format you need, read that.
#2 create a temp cursor that reads the column as character, manipulate that column, write back to disk, read result
#3 read to cursor as in #2, import from that cursor
#....
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform