Java Date Format ISO toISODateRealTimeFormat(Date iDate)

Here you can find the source of toISODateRealTimeFormat(Date iDate)

Description

to ISO Date Real Time Format

License

Apache License

Declaration

public static String toISODateRealTimeFormat(Date iDate) 

Method Source Code


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

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String ISO_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";

    public static String toISODateRealTimeFormat(Date iDate) {
        DateFormat df = new SimpleDateFormat(ISO_DATE_TIME_FORMAT);
        return df.format(iDate);
    }/*ww w.  j  a v a2  s  .  c om*/
}

Related

  1. toIso8601(Date dateObj)
  2. toIso8601(Date dateTime)
  3. toISO8601(Date pDate)
  4. toISO8601FileSystemCompatible(Calendar calendar)
  5. toISODate(String format, String value)
  6. toISOString(Date date, String format, TimeZone tz)
  7. toIsoTime(Date timestamp)
  8. toIsoTime(Date timestamp)
  9. toStringISO8601(Calendar cal)