Java Utililty Methods Date Now

List of utility methods to do Date Now

Description

The list of methods to do Date Now are organized into topic(s).

Method

StringgetCurrentDate()
get Current Date
String format = "yyyy-MM-dd";
return formatDate(format);
StringgetCurrentDate()
get Current Date
Date d = new Date();
return formatDate(d);
StringgetCurrentDate()
get Current Date
Calendar date1 = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.format(date1.getTime());
DategetCurrentDate()
get Current Date
Date now = getCurrentDateTime();
return strToDate(dateToStr(now));
StringgetCurrentDate()
get Current Date
DateFormat dateFormat = _DATE_FORMAT.get();
return dateFormat.format(new Date());
StringgetCurrentDate()
get Current Date
return getFormattedDate(new Date());
StringGetCurrentDate()
Returns the current date in standard date format.
java.util.Date CurrentDate = new java.util.Date();
SimpleDateFormat DateFormatter = getStandardDateFormat();
return DateFormatter.format(CurrentDate);
StringgetCurrentDate()
Return timestamp - that can be used for logging purpose
String timestamp = (new SimpleDateFormat("MMddHHmm")).format(new Date());
return timestamp;
StringgetCurrentDate()
get Current Date
String currentDate = "";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
currentDate = sdf.format(new java.util.Date());
return currentDate;
java.util.DategetCurrentDate()
Obtiene la fecha actual
java.util.Date now = new java.util.Date();
DateFormat ISO8601Local = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
TimeZone timeZone = TimeZone.getDefault();
ISO8601Local.setTimeZone(timeZone);
return now;