| java.lang.Object java.util.Date org.contineo.core.i18n.DateBean
DateBean | public class DateBean extends Date (Code) | | This class converts a date into some formats.
author: Michael Scholz author: Sebastian Stein version: 1.1 |
convertDate | public static String convertDate(String formatIn, String formatOut, String dateIn)(Code) | | Converts a string containing a date between the given formats.
Parameters: formatIn - current format of the string Parameters: formatOut - format the string should be converted to Parameters: dateIn - the string containing a date in the formatIn returns the converted string in the formatOut |
dateFromCompactString | public static Date dateFromCompactString(String compactString)(Code) | | This method creates the Date object for a compact string in the format
yyyyMMdd HH:mm:ss or yyyyHHdd.
|
toCompactString | public static String toCompactString()(Code) | | This method returns the current date in the format yyyyMMdd HH:mm:ss.
current date in format yyyyMMdd HH:mm:ss |
toCompactString | public static String toCompactString(String date, String lang)(Code) | | This method formats a string with format dd.mm.yyyy into format yyyymmdd.
Parameters: date - string containing the date to be converted Parameters: lang - from which language it should be converted a string containing the converted date |
toCompactString | public static String toCompactString(Date date)(Code) | | This method formats a a date into format yyyymmdd.
Parameters: date - the date to be converted a string containing the converted date |
toCompactString | public static String toCompactString(String date, String dateFormat, String lang)(Code) | | This method formats a string with format dd.mm.yyyy into format yyyymmdd.
Parameters: date - string containing the date to be converted Parameters: lang - from which language it should be converted a string containing the converted date |
toLocaleString | public static String toLocaleString(String date, String lang)(Code) | | This method formats a compact date (yyyyMMdd) to a localised date.
Parameters: date - string containing the date to be converted Parameters: lang - to which language it should be converted to a string containing the converted date |
|
|