Java Date Format ISO getISODate()

Here you can find the source of getISODate()

Description

get ISO Date

License

Open Source License

Declaration

static public String getISODate() 

Method Source Code


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

import java.util.*;
import java.util.Date;

import java.text.*;

public class Main {
    public static SimpleDateFormat _ISODateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.US);

    static public String getISODate() {
        return getISODate(new Date());
    }/*  ww w.  j  a va 2  s .  co m*/

    static public String getISODate(Date date) {
        return _ISODateFormat.format(date);
    }
}

Related

  1. getISO8601String(Date date)
  2. getISO8601Time()
  3. getISO8601Time(Date date)
  4. getISO8601UTCString(Date d)
  5. getISODate()
  6. getISODate(int i)
  7. getIsoDateFormat()
  8. getIsoDateFormat()
  9. getIsoDateFormater()