Java String to Date toDateTimeSSSString(long datetime)

Here you can find the source of toDateTimeSSSString(long datetime)

Description

to Date Time SSS String

License

Open Source License

Declaration

public static String toDateTimeSSSString(long datetime) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {

    public static String toDateTimeSSSString(long datetime) {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS").format(new java.util.Date(datetime));
    }// w w  w .ja  va2 s  .c o m
}

Related

  1. toDateString(long ms)
  2. toDateString(String fmt, Date date)
  3. toDateStyleBoth(String dateStr)
  4. toDatetime(String sDate)
  5. toDateTimeFormat(String input, String inputfmt, String outputfmt)
  6. toDateTimeString(java.util.Date date)
  7. toDateTimeString(java.util.Date date)
  8. toDateWithFormatString(String date, String format)
  9. toDateWithTimezone(String dateTime, String pattern)