codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/YdZQzgXR
[
raw code
|
output
|
fork
]
PHP
,
pasted on Mar 20:
1
2
3
4
<?
$date
=
'2012-12-30'
;
echo
date
(
'd-m-Y'
,
strtotime
(
$date
));
?>
Output:
1
30-12-2012
Create a new paste based on this one
Comments: