public class MDate extends Date
MDate class.
| Constructor and Description |
|---|
MDate()
Constructor for MDate.
|
MDate(long date)
Constructor for MDate.
|
MDate(String string)
Constructor for MDate.
|
MDate(Timestamp timestamp)
Constructor for MDate.
|
| Modifier and Type | Method and Description |
|---|---|
static DateFormat |
getLocaleDateFormater(Locale locale)
Returns a locale specific date formatter.
|
static boolean |
isEarlierAs(Date a,
Date b)
isEarlierAs.
|
static boolean |
isLaterAs(Date a,
Date b)
isLaterAs.
|
static boolean |
isWeekend(Date date)
isWeekend.
|
static boolean |
isWorkDay(Date date)
isWorkDay.
|
Calendar |
toCalendar()
toCalendar.
|
static Date |
toDate(Object in,
Date def)
toDate.
|
static Date |
toDate(Object in,
Date def,
Locale locale)
toDate.
|
static String |
toDateString(Date date)
toDateString.
|
static String |
toDateString(Date date,
Locale locale)
toDateString.
|
static String |
toDateTimeSecondsString(Date date)
toDateTimeSecondsString.
|
static String |
toDateTimeSecondsString(Date date,
Locale locale)
toDateTimeSecondsString.
|
static String |
toDateTimeString(Date date)
toDateTimeString.
|
static String |
toDateTimeString(Date date,
Locale locale)
toDateTimeString.
|
static String |
toFileFormat(Calendar date)
yyyyMMddHHmmss
|
static String |
toFileFormat(Date date)
yyyyMMddHHmmss
|
static String |
toIso8601(Calendar date)
yyyy-MM-ddTHH:mm:ss
|
static String |
toIso8601(Date date)
yyyy-MM-ddTHH:mm:ss
|
static String |
toIsoDate(Calendar _in)
Calendar to iso date: yyyy-mm-dd
|
static String |
toIsoDate(Date _in)
Returns the date in iso format: yyyy-mm-dd
|
static String |
toIsoDateTime(Calendar _in)
toIsoDateTime.
|
static String |
toIsoDateTime(Date _in)
Returns the date in iso time format: yyyy-mm-dd HH:mm:ss.SSS
|
static String |
toIsoDateTime(long timeStamp)
Calendar to iso date: yyyy-mm-dd
|
Date |
toSqlDate()
toSqlDate.
|
Time |
toSqlTime()
toSqlTime.
|
Timestamp |
toSqlTimestamp()
toSqlTimestamp.
|
String |
toString() |
static String |
toTimeSecondsString(Date date)
toTimeSecondsString.
|
static String |
toTimeString(Date date)
toTimeString.
|
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTCpublic MDate()
Constructor for MDate.
public MDate(long date)
Constructor for MDate.
date - a long.public MDate(Timestamp timestamp)
Constructor for MDate.
timestamp - a Timestamp object.public static boolean isWorkDay(Date date)
isWorkDay.
date - a Date object.public static boolean isWeekend(Date date)
isWeekend.
date - a Date object.public static String toDateTimeSecondsString(Date date)
toDateTimeSecondsString.
public static String toDateTimeSecondsString(Date date, Locale locale)
toDateTimeSecondsString.
public static DateFormat getLocaleDateFormater(Locale locale)
locale - the locale or null for default localeDateFormat object.public static String toIsoDateTime(Date _in)
public static String toIsoDateTime(long timeStamp)
timeStamp - a long.String object.Copyright © 2016. All Rights Reserved.