Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php change date format

<?php
  	#https://moneyconvert.net/
    $source = '2012-07-31';
    $date = new DateTime($source);
    echo $date->format('d.m.Y'); // 31.07.2012
    echo $date->format('d-m-Y'); // 31-07-2012
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #change #date #format
ADD COMMENT
Topic
Name
8+7 =