[ create a new paste ] login | about

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

PHP, pasted on Jun 24:
1
2
3
4
5
6
7
8
<?php
$time = "Tuesday, 26 June 2012";
$a = strptime($time, "%A, %e %B %Y");

$stmp = mktime(0, 0, 0, $a['tm_mon'] + 1, $a['tm_mday'], 1900 + $a['tm_year'], 0);
$from_stmp = date("l, j F Y H:i:s", $stmp);
echo $from_stmp;
?>


Output:
1
Tuesday, 26 June 2012 00:00:00


Create a new paste based on this one


Comments: