Ver original<?php$dt = '2012-12-1';list($year, $month, $day) = explode('-', $dt);echo $year . '/' . $month;