This should work.
// ot vairable
$ot = '2002-10-22';
// make date into timestamp
$stamp = strtotime($ot);
// check to make sure
$new_ot = date("Y-m-d",$stamp);
// echo out make sure it all worked
echo"$stamp = $new_ot = $ot";
I put it in a page and got the following output:
1035262800 = 2002-10-22 = 2002-10-22
Looks like you had it correct.