la data quindi in che formato è? "dd-mm-yyyy hh:mm::ss" ?
potresti anche usare la substr...

Codice PHP:
$data=substr("dd-mm-yyyy hh:mm::ss"12
può andare?