Java Date Format As getDateAsISOTimestampString(Date timestamp)

Here you can find the source of getDateAsISOTimestampString(Date timestamp)

Description

get Date As ISO Timestamp String

License

Open Source License

Declaration

public static String getDateAsISOTimestampString(Date timestamp) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    private static final SimpleDateFormat TIMESTAMP_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");

    public static String getDateAsISOTimestampString(Date timestamp) {

        return TIMESTAMP_FORMAT.format(timestamp);
    }//  w  w  w. jav a 2s . c  om
}

Related

  1. formatDay(java.util.Date d)
  2. formatDDMMYYYY(Date date)
  3. formatddMMyyyy(Date date)
  4. getDateAsISO8601String(Date date)
  5. getDateAsISO8601String(Date date)
  6. getDateAsRFC822String(Date date)
  7. getDateYYYYMMDD()
  8. getDateYYYYMMDD(Object yyyymmdd)
  9. getDateYYYYMMDD_HHSSMMNNN()