Java Utililty Methods Now

List of utility methods to do Now

Description

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

Method

StringnowDateString()
Return a string formatted as yyyyMMddHHmmss
SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
return df.format(new Date());
StringnowDateString(String format)
Return a string formatted as format
SimpleDateFormat df = new SimpleDateFormat(format);
return df.format(new Date());
StringnowDateToString()
now Date To String
return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
StringnowDT()
now DT
return formatDT(FMT_DEFAULT);
StringnowDT()
now DT
return formatDT(FMT_DEFAULT);
StringnowFile()
now File
return fileDateTimeFormat.format(new Date());
StringnowFormat(String format)
Envuelve la funcion Calendar.getInstance().getTime()
if (format == null)
    format = FORMATO_FECHA_GUION;
sdf = new SimpleDateFormat(format, new Locale("es"));
return sdf.format(Calendar.getInstance().getTime());
StringnowFormat(String format)
now Format
SimpleDateFormat sdf = new SimpleDateFormat(format);
return sdf.format(Calendar.getInstance().getTime());
StringnowIdentity()
Returns the current identity like '20090831182858668'
return getFormat(now(), "yyyyMMddHHmmssSSS");
StringnowInBasicFormat()
now In Basic Format
return BASIC.get().format(new Date());