Here you can find the source of getCurrentDate()
public static String getCurrentDate()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**// www .ja v a 2 s . c o m * Holds the format of a Cordys Date String */ public static final String CORDYS_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss"; /** * Returns the current date in Cordys format. * @return */ public static String getCurrentDate() { String returnValue = null; SimpleDateFormat targetFormat = new SimpleDateFormat(CORDYS_DATE_FORMAT); returnValue = targetFormat.format(new Date()); return returnValue; } }