Here you can find the source of getCurrentDateMMDDYYYY()
public static String getCurrentDateMMDDYYYY()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from w w w .j a v a 2 s. c o m*/ * Gets current date. * * @return current date in MM/DD/YYYY format */ public static String getCurrentDateMMDDYYYY() { Date date = new Date(); SimpleDateFormat MM_DD_YYYY_FORMAT = new SimpleDateFormat("MM/dd/yyyy"); String currentDate = MM_DD_YYYY_FORMAT.format(date); return currentDate; } }