change format %J back to its original format and add %K for 3 digits milliseconds in time and datetime format