Assuming you have a date as a string (sorry, it was not clear from your question, if so), you can break the string into-characters as follows:
$date = "2068-06-15"; $split_date = split("-", $date); $year = $split_date[0];
dshipper Dec 25 '10 at 7:49 2010-12-25 07:49
source share