Answers for "frotmat date in php"

PHP
6

date format php

<?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
0

php date fomat

$date=date_create("2013-03-15");

echo date_format($date,"Y/m/d H:i:s");
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language