Answers for "php function to format sql"

PHP
8

php mysql date format

date("Y-m-d H:i:s")
Posted by: Guest on July-05-2019
6

php format date

<?php
  // To change the format of an existing date
  $old_date_format = "20/03/1999";
  $new_data_format = date("Y-m-d H:i:s", strtotime($old_date_format));
Posted by: Guest on April-14-2020

Browse Popular Code Answers by Language