The code below gives me the current time. But it does not tell anything about milliseconds.
public static String getCurrentTimeStamp() { SimpleDateForm
I would use something like this:
String.format("%tF %
Variable dateTime could be any date and/or time value, see JavaDoc for Formatter.
dateTime