PHP Code:
$month = substr($data, 0, 2);
$day = substr($data, 2, 2);
$year = "20" . substr($data, 4, 2) if( length($data) == 6);
$year = substr($data, 4, 4) if( length($data) == 8);
$data="$year-$month-$day";
Results 1 to 1 of 1
Thread: [perl] 01012001 to 01-01-2001
|
Click Here to Expand Forum to Full Width |