The code below gives me the current time. But it does not tell anything about milliseconds.
public static String getCurrentTimeStamp() { SimpleDateForm
You can simply get it in the format you want.
String date = String.valueOf(android.text.format.DateFormat.format("dd-MM-yyyy", new java.util.Date()));