[ create a new paste ] login | about

Link: http://codepad.org/vyWLXFwJ    [ raw code | output | fork ]

PHP, pasted on Mar 6:
1
2
3
4
<?PHP

$d = "2012-07-02T00:00:00";
echo $newDate = date("d-m-Y",strtotime($d));


Output:
1
02-07-2012


Create a new paste based on this one


Comments: