public class DateBean extends Date
Constructor and Description |
---|
DateBean() |
Modifier and Type | Method and Description |
---|---|
static String |
convertDate(String formatIn,
String formatOut,
String dateIn)
Converts a string containing a date between the given formats.
|
static Date |
dateFromCompactString(String compactString)
This method creates the Date object for a compact string in the format
yyyyMMdd HH:mm:ss or yyyyHHdd.
|
static String |
toCompactString()
This method returns the current date in the format yyyyMMdd HH:mm:ss.
|
static String |
toCompactString(Date date)
This method formats a a date into format yyyymmdd.
|
static String |
toCompactString(String date,
String dateFormat,
String lang)
This method formats a string with format dd.mm.yyyy into format yyyymmdd.
|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC
public static String toCompactString()
public static Date dateFromCompactString(String compactString)
public static String toCompactString(Date date)
date
- the date to be convertedpublic static String toCompactString(String date, String dateFormat, String lang)
date
- string containing the date to be convertedlang
- from which language it should be convertedpublic static String convertDate(String formatIn, String formatOut, String dateIn)
formatIn
- current format of the stringformatOut
- format the string should be converted todateIn
- the string containing a date in the formatInCopyright © 2008-2014 Logical Objects. All Rights Reserved.