<?php $date = "2013-12-09"; if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) { print_r( $regs ); } else { echo "Invalid date format: $date"; }
You have javascript disabled. You will not be able to edit any code.