Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Import csv with different date format

$
0
0

Hello,

I have a csv file with various columns including a date column with the format MM/DD/YY. When I upload this file through Model Admin interface, all field values are saved correctly except the date field which is saved as 1969/12/31. I have extended the CsvBulkLoader class to associate csv columns with the table fields, and I have added " i18n::set_date_format('MM/dd/YYYY');" to the _config.php file, but still it accepts only this format: DD/MM/YYYY.

any help on how to import and save the date format in the csv file which is MM/DD/YY instead of the default.

Thanks


Posted to: Import csv with different date format | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles