Parsing a date with a regular expression
<?php $date = '2010-12-03 05:12:56'; preg_match('/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/',$date,$date_parts); ?>