Here you can find the source of getISOFormat(java.util.Date date)
public static String getISOFormat(java.util.Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; public class Main { public static String getISOFormat(java.util.Date date) { return new SimpleDateFormat("yyyy-mm-dd hh:mm:ss").format(date); }//from w ww . ja va 2 s . com }