WWWD:
The date fields do not seem to allow date to populate from the .csv files that I've used to import the information. I've not come across this before, the dates are in the import file but do not write to the fields in the target table.
Why are you exporting/importing using .csv ? (yes, there ARE valid reasons for this), but if this is a matter of migrating the data from one version of ZenCart to another, then you are better served doing this in .sql format and the dates will be retained).
I should also mention that SQL servers can be/are quite finicky about the data being imported into date/time fields because internally these are stored as a timestamp, which is typically the number of seconds that have passed since January 1970.
There's several reasons for this.
- It makes date related calculations easy and reliable.
- It negates the effects of timezone differences for when/if the data is migrated from a server based in (say) USA to a server based in UK
- It maintains compatibility between different servers that may happen to use a different date format, such as MM-DD-YYYY, DD-MM-YYYY and even D-M-Y
This is never an issue with the SQL export/import, but with .CSV these timestamps (numbers) are converted to/from a human readable text format, and if the server being imported to doesn't understand the text format, it'll either set the date to null, zero, or 01-01-1970
Cheers
RodG