Java Date Format ISO isoTime(Date d)

Here you can find the source of isoTime(Date d)

Description

iso Time

License

Open Source License

Declaration

public static String isoTime(Date d) 

Method Source Code

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

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

public class Main {
    private static DateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");

    public static String isoTime(Date d) {
        if (d == null)
            return null;
        return isoDateFormat.format(d);
    }//from   w ww  . j  ava  2  s  .co  m
}

Related

  1. iso8601Date(Date d)
  2. isoDateFormat(Calendar calendar)
  3. isoDateFormat(final Date date)
  4. isoDateTimeUTC(final Date val)
  5. isoFormat(Date date)
  6. longToISODate(long longDate)
  7. makeDateISO8601(Date date)
  8. millisecondsToISO8601(long date)
  9. NowFormatISO()