Here you can find the source of getISO8601Date(final Date date)
Parameter | Description |
---|---|
date | a parameter |
public static String getISO8601Date(final Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from ww w .j ava2 s .c o m*/ * get an ISO 8601 Date Format * * @param date * @return */ public static String getISO8601Date(final Date date) { final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); return sdf.format(date); } }