<?php echo preg_replace('/([\d]{1,2})\/([\d]{1,2})\/([\d]{4})/', '$3-$1-$2 00:00', '8/4/2014');
You have javascript disabled. You will not be able to edit any code.