I have a string array that I am importing to a MySQL table, containing strings but also date strings (e.g. '2017-01-01'). Some dates are zero ('') and MySQL does not recognise these as dates. Since I am using a string array I cannot use NULL.
How can I pass a zero date value to my table by using a string value? The result in the table should be null, not '00-00-0000' for example.
Thanks!