Java Date Format ISO toISO2616DateFormat(Date date)

Here you can find the source of toISO2616DateFormat(Date date)

Description

to ISO Date Format

License

Open Source License

Declaration

public static String toISO2616DateFormat(Date date) 

Method Source Code


//package com.java2s;
import java.text.SimpleDateFormat;
import java.util.Date;

import java.util.Locale;
import java.util.TimeZone;

public class Main {
    public static String toISO2616DateFormat(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
        dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
        return dateFormat.format(date);
    }/* w ww . j  av a 2s  . c  o  m*/
}

Related

  1. parseISODateFormat(String dateStr)
  2. parseIsoDateTime(final String isoDateString, final String dateFormat)
  3. timeToIso8601(long time, boolean includeTime)
  4. toBasicISO8601DateTime(Date value)
  5. toDateIso(Date date)
  6. toIso8601(@Nullable Calendar calendar)
  7. toISO8601(Date date)
  8. toISO8601(Date date)
  9. toIso8601(Date date)