CMS-4407 Support milliseconds in non-standard datatime string formats

Added support for

"yyyy-MM-dd HH:mm:ss.SSS"
"yyyy-MM-dd HH:mm:ss.SSSZ"