Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert date to reverse date in php

<?php 
//This function convert date from any format to any format
function reformatDate($date, $from_format = 'd/m/Y', $to_format = 'Y-m-d') {
    $date_aux = date_create_from_format($from_format, $date);
    return date_format($date_aux,$to_format);
}

//Calling Funciton 
reformatDate($date);
?>
 
PREVIOUS NEXT
Tagged: #convert #date #reverse #date #php
ADD COMMENT
Topic
Name
7+5 =