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