Android Get Timestamp

public String getTimestamp(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy.MM.dd.HH.mm.ss.SSS");
            String timestamp = sdf.format(new Date());
            return timestamp;
    }

Comments