Java Date Format ISO getISODateStr(Date date)

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

Description

get ISO Date Str

License

Open Source License

Declaration

public static String getISODateStr(Date date) 

Method Source Code

//package com.java2s;
/**/*from   www .  j a  v a 2s  .  c  om*/
* License: https://github.com/votingsystem/votingsystem/wiki/Licencia
*/

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;
import java.util.Locale;

public class Main {
    private static final DateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'",
            Locale.getDefault());

    public static String getISODateStr(Date date) {
        return isoDateFormat.format(date);
    }
}

Related

  1. getISODate(int i)
  2. getIsoDateFormat()
  3. getIsoDateFormat()
  4. getIsoDateFormater()
  5. getISODateFormatterShort()
  6. getISODateStringFormat(Date ts)
  7. getIsoFormat()
  8. getISOFormat(java.util.Date date)
  9. getISOFromMillisec(long timeMillisecGMT)