<?php $date = strtotime( '2018-03-07 20:48:21 America/Toronto' ); echo date( 'Y-m-d', $date ), "\n"; ?>