[ create a new paste ] login | about

Link: http://codepad.org/x2eZay0Q    [ raw code | output | fork | 3 comments ]

PHP, pasted on Aug 14:
1
2
3
4
5
6
7
8
9
<?php

$radate = "2011-08-14 19:15:25";
if (strtotime($radate) === false)
    $radate = date('Y-m-d H:i:s');

echo $radate;

?>


Output:
1
2011-08-14 19:15:25


Create a new paste based on this one


Comments:
posted by imron on Aug 9
tes
reply
posted by imron on Aug 9
bisa
reply
posted by imron on Aug 9
coba

reply