SyntaxFix
Write A Post
Hire A Developer
Questions
As of PHP 7.1 you can simply do this:
$date = new DateTime( "NOW" ); echo $date->format( "m-d-Y H:i:s.u" );
It will display as:
04-11-2018 10:54:01.321688