java.lang.Objectorg.objectweb.telosys.util.DateUtil
Method Summary | |
static java.lang.String |
dateISO(java.util.Date date)
Returns the given date as an ISO date string ( "YYYY-MM-DD" ) |
static java.lang.String |
dateTimeISO(java.util.Date date)
Returns the given date as an ISO date and time string ( "YYYY-MM-DD HH:MM:SS" ) |
static java.lang.String |
format(int iDay,
int iMonth,
int iYear)
|
static java.lang.String |
format(int iJ,
int iM,
int iA,
java.lang.String sFormat)
|
static int |
getDay(java.sql.Date date)
Returns the day of the month for the given date |
static int |
getMonth(java.sql.Date date)
Returns the month of the given date |
static java.sql.Date |
getSqlDate(int iDay,
int iMonth,
int iYear)
Returns a java.sql.Date instance for the given day, month and year |
static java.util.Date |
getUtilDate(int iDay,
int iMonth,
int iYear)
Returns a standard Date instance for the given day, month and year |
static int |
getYear(java.sql.Date date)
Returns the year of the given date |
static java.lang.String |
timeISO(java.util.Date date)
Returns the given date as an ISO time string ( "HH:MM:SS" ) |
static java.sql.Date |
todaySqlDate()
|
static java.lang.String |
todayString(java.lang.String sFormat)
|
static java.util.Date |
todayUtilDate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.sql.Date todaySqlDate()
public static java.util.Date todayUtilDate()
public static java.lang.String todayString(java.lang.String sFormat)
sFormat
- :
public static java.lang.String format(int iJ, int iM, int iA, java.lang.String sFormat)
iJ
- :iM
- :iA
- :sFormat
- : format string usable to build a SimpleDateFormat
public static java.lang.String format(int iDay, int iMonth, int iYear)
iDay
- :iMonth
- :iYear
- :
public static java.sql.Date getSqlDate(int iDay, int iMonth, int iYear)
iDay
- :iMonth
- :iYear
- :
public static java.util.Date getUtilDate(int iDay, int iMonth, int iYear)
iDay
- : 1 to 31iMonth
- : 1 to 12iYear
- :
public static int getDay(java.sql.Date date)
date
- :
public static int getMonth(java.sql.Date date)
date
- :
public static int getYear(java.sql.Date date)
date
- :
public static java.lang.String dateISO(java.util.Date date)
date
-
public static java.lang.String timeISO(java.util.Date date)
date
-
public static java.lang.String dateTimeISO(java.util.Date date)
date
-