<?php $date = new DateTime('2015-01-01 18:00:00.123456'); echo $date->format('u'), PHP_EOL; var_dump(json_encode($date));
You have javascript disabled. You will not be able to edit any code.