I am trying to integrate with some VB code that generates a string using
DateTime.Now.ToString("yyyyMMddHHmmssffff")
The closest I can get to this in PHP has been
date('YmdHis')
But this lacks the milliseconds,
I have tried playing with microtime
e.g.
date('YmdHis',time()).substr(str_replace(".","",microtime(true)),10,17)
But sometimes this results in a shorter string