[ create a new paste ] login | about

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

PHP, pasted on Jun 13:
1
2
3
<?php

var_dump(date('Y-m-d', strtotime('2012-02-31')));


Output:
1
string(10) "2012-03-02"


Create a new paste based on this one


Comments: