toString('YYYY/MM/dd'); echo "Initial date ('dd/MM/YYYY'): ".$strInitialDate; echo "\n"; echo "Formatted date ('YYYY/MM/dd'): ".$strFormattedDate; echo "\n"; ?>