public class DateHandler extends Object
| Constructor and Description |
|---|
DateHandler() |
| Modifier and Type | Method and Description |
|---|---|
static Date |
addDays(Date aDate,
Integer aDays)
Current time with "HH:mm:ss" format
|
static String |
getCurrentDate()
Current date with "yyyy-MM-dd" format
|
static String |
getCurrentTime()
Current time with "HH:mm:ss" format
|
static Integer |
rangeOfDaysBetweenDates(Date aInitialDate,
Date aEndDate)
Range of days between two date
|
static Date |
substractDays(Date aDate,
Integer aDays)
Current time with "HH:mm:ss" format
|
public static String getCurrentDate()
public static String getCurrentTime()
public static Date addDays(Date aDate, Integer aDays)
Date - Integer - public static Date substractDays(Date aDate, Integer aDays)
Date - Integer - Copyright © 2013. All Rights Reserved.