strtotime with year in 2 digit format

smoove123

New Member
Hallo can someone explain the behaviour of strtotime function with year in non-standard format. \[code\]echo date("d-m-Y",strtotime('02-12-10')) .'<br>'; //10-12-2002echo date("d-m-Y",strtotime('09.09.10')) .'<br>'; //02-09-2010 --How this is interpreted?echo date("d-m-Y",strtotime('02-12-2010')) .'<br>'; //02-02-2010echo date("d-m-Y",strtotime('09.09.2010')) .'<br>'; //09-09-2010\[/code\]I wanted to convert strings of format dd.mm.yy(09.09.10) to datetime format.
 
Back
Top