csv time format and import time format different causing issues
-
I have a csv file showing date as “YYYY-mm-dd hh:mm:ss” or “None”
But for import I need time format as mm/dd/YYYY hh:mm AM/PMI am not that good with coding skills but managed to make a small change date function program would like to get input for the function or even suggestions if you can.
function change_date ($date_end) { if ($date_end=="None"){ echo "12/31/2019"; } else{ echo date_format($date_end,'m/d/Y H:i A'); } }hope my program makes some sense to you.
The program sometime worked on the localhost but failed on the live server.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘csv time format and import time format different causing issues’ is closed to new replies.