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

StringformatHL7TSFormat4Date(Date time)
format HLTS Format Date
return getSimpleDateFormat(HL7TSFormat4).format(time);
StringformatJJJJMMTT(long time)
format JJJJMMTT
DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
return dateFormat.format(new Date(time));
StringformatPGNDate(final Date pDate)
format PGN Date
assert pDate != null;
return new SimpleDateFormat("yyyy.MM.dd").format(pDate);
StringformatRTGSDate(java.util.Date date)
This method converts a JDBC format date into a String
if (date == null)
    return null;
return rtgsUserDateFmt.format(date);
StringformatShortDate(Date date)
format Short Date
return formatDate(date, "EEE, d MMM yyyy");
StringformatSimpleDate(Date date)
format Simple Date
if (date == null) {
    return "";
return SIMPLE_DAY_FORMAT.format(date);
StringformatSimpleGermanDateString(Date date)
format Simple German Date String
SimpleDateFormat sdf = new SimpleDateFormat(simpleGermanDatePattern);
return sdf.format(date);
StringformatSpaydDate(Date date, TimeZone tz)
format Spayd Date
if (date == null) {
    return null;
if (dateFormat == null) {
    dateFormat = new SimpleDateFormat("yyyyMMdd");
if (tz != null) {
    dateFormat.setTimeZone(tz);
...
StringformatStr(Date date)
format Str
SimpleDateFormat sdf = new SimpleDateFormat(DEFAULT_YMD_FORMAT);
if (date == null) {
    return "";
return sdf.format(date);
StringformatString(Date date)
Genera una cadena a partir de un objeto Date con una fecha
SimpleDateFormat dateFormat = new SimpleDateFormat(FORMATDATE);
String string = "";
if (date != null)
    string = dateFormat.format(date);
return string;