DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Import/Export Tools  
DwZone Forum Index -> Import/Export Tools

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 171 to 180 of 382 (Total: 233) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: csv Import  
View this persons public profile  Victor   13:52 12 Dec 2010  
   Import Excel File  
View this persons public profile  EnricLizondo   6:41 12 Nov 2010  
   Re: Import Excel File  
View this persons public profile  EnricLizondo   7:06 12 Nov 2010  
    Importing custom DATETIME from CSV  
View this persons public profile  Ryan Dunphy   15:51 6 Sep 2010  
 
I have a CSV file that features a DATETIME field that appears as the following when opened in Excel:

09/06/2010 13:26

When I open this file in notepad, it appears as this

09/06/2010 1:26:49 PM

If I set the DB Format Date to YYYY-MM-DD, it allows me to import the data into a MYSQL database however the time is always cut off and left as this

2010-09-06 00:00:00

I'm thinking that manually adjusting the following line should fix the issue but I can't seem to figure it out:

dwzXml_CsvImport_1.SetExtraData "YYYY-MM-DD@_@true/false@_@''@_@'@_@0@_@'@_@''"

Any attempts to adjust this line just gives me this error

Incorrect datetime value: '09/06/2010 1:26:49 PM' for column 'createDate' at row 1

Is this possible or am I limited to only importing the date and not the time?

Any help would be greatly appreciated.

Cheers,

Ryan
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Importing custom DATETIME from CSV  
View this persons public profile  Ryan Dunphy   16:04 6 Sep 2010  
   Re: Importing custom DATETIME from CSV  
View this persons public profile  Gianluigi   11:05 7 Sep 2010  
   Re: Importing custom DATETIME from CSV  
View this persons public profile  Ryan Dunphy   10:15 16 Sep 2010  
   Re: Importing custom DATETIME from CSV  
View this persons public profile  Gianluigi   10:36 16 Sep 2010  
   Re: Importing custom DATETIME from CSV  
View this persons public profile  Ryan Dunphy   14:29 25 Sep 2010  
   Importing more than 300 records at a time??  
View this persons public profile  Ryan Dunphy   10:00 19 Jul 2010  
Last Visit: Saturday 14 Jun, 2025 9:05 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-2

Jump to: