public class MDate extends Date
| Constructor and Description |
|---|
MDate() |
MDate(long date) |
MDate(String string) |
MDate(Timestamp timestamp) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEarlierAs(Date a,
Date b) |
static boolean |
isLaterAs(Date a,
Date b) |
static boolean |
isWeekend(Date date) |
static boolean |
isWorkDay(Date date) |
Calendar |
toCalendar() |
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) |
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() |
Time |
toSqlTime() |
Timestamp |
toSqlTimestamp() |
String |
toString() |
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, UTCpublic MDate()
public MDate(long date)
public MDate(Timestamp timestamp)
public MDate(String string)
public Date toSqlDate()
public Time toSqlTime()
public Timestamp toSqlTimestamp()
public Calendar toCalendar()
public static boolean isWorkDay(Date date)
public static boolean isWeekend(Date date)
public static String toIsoDate(Date _in)
_in - public static String toIsoDateTime(Date _in)
_in - public static String toIsoDateTime(long timeStamp)
_in - public static String toIsoDate(Calendar _in)
_in - public static String toIso8601(Calendar date)
date - Copyright © 2014. All rights reserved.