Here you can find the source of getISODate()
static public String getISODate()
//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); } }