Java Date Format ISO getShortISODateTime(final Date inDate)

Here you can find the source of getShortISODateTime(final Date inDate)

Description

get Short ISO Date Time

License

Apache License

Declaration

public static String getShortISODateTime(final Date inDate) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getShortISODateTime(final Date inDate) {
        String isoDate = null;//from  www  . j a  va 2s.  co m
        SimpleDateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
        if (inDate != null) {
            isoDate = isoDateFormat.format(inDate);
        }
        return isoDate;
    }
}

Related

  1. getISOHttpDateFormat()
  2. getIsoTimeStamp()
  3. getIsoTimestampFormatter()
  4. getJavaISO8601Time(Date date)
  5. getSDFISO8601()
  6. iso(Date date)
  7. iso8601(final Date date)
  8. iso8601Date(Date d)
  9. isoDateFormat(Calendar calendar)