<?php $date = '07-2012'; echo date('Y-m', strtotime($date));
You have javascript disabled. You will not be able to edit any code.