Java Utililty Methods yyyy

List of utility methods to do yyyy

Description

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

Method

Stringformat(Date date)
format
return format(date, "yyyy-MM-dd");
Stringformat(Date date)
Converte uma data para String no formato dd/MM/yyyy.
return DEFAULT.format(date);
Stringformat(Date date, String format)
format
return new SimpleDateFormat(format).format(date);
Stringformat(Date date, String pattern)
format
if (date == null) {
    return null;
SimpleDateFormat sf = new SimpleDateFormat(pattern);
return sf.format(date);
Stringformat(Date date, String pattern)
format
if (date == null)
    return "";
else
    return getFormatter(pattern).format(date);
Stringformat(Date pDt)
format
return formatter.format(pDt);
Stringformat(final Date date, final String pattern)
format
if (date == null) {
    return null;
if (pattern != null) {
    return new SimpleDateFormat(pattern).format(date);
return new SimpleDateFormat("dd.MM.yyyy").format(date);
Stringformat(final java.util.Date date, final String sFormat)
Format the given date using the given format
SimpleDateFormat dateFormat = new SimpleDateFormat(sFormat);
return dateFormat.format(date);
Stringformat(java.util.Date date)
format
if (date == null) {
    return "";
return format(date, "yyyy/MM/dd");
Stringformat(java.util.Date date)
format
return date == null ? "" : format(date, "yyyy-MM-dd");