I am getting ParseException for the following code
ParseException
String dateStr = \"2011-12-22 10:56:24.389362\"; String formatStr = \"yyyy-MM-dd HH:m
Use toISOString('HH:mm:ss.S') to get milliseconds (3 digits), then complete as you need with 0.
toISOString('HH:mm:ss.S')
For example:
new Date().toISOString('HH:mm:ss.S')
returns "2012-02-10T12:16:39.124Z"