Convert SQL datetime to timestamp (PHP) and convert to local date