[ create a new paste ] login | about

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

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

$releasedate = 'May 31, 2011';

$pubdate = date('Y-m-d H:i:s', strtotime($releasedate));

var_dump($pubdate);


Output:
1
string(19) "2011-05-31 00:00:00"


Create a new paste based on this one


Comments: