I know this is simple but I have been using mssql for so long
I have forgotten how to do it in MySql.
I am reading a date from a CSV file of the format
How do I convert this to ISO 8601 standard
The value is an array element of which I am looping through removing
spaces and currency symbols and hopefully correcting the date
I have forgotten how to do it in MySql.
I am reading a date from a CSV file of the format
dd/mm/yyyy
yyyy-mm-dd
spaces and currency symbols and hopefully correcting the date
Code:
foreach($row as &$element) { $element = trim($element); if(strpos($element,'£')) $element = ltrim(($element),'£'); if(strpos($element,'date')) /*******How do I convert to MySql **************/ }
Comment