javascript format to Y-m-d h:i:s.u code example
Example: date time format php
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm