public class DateTime extends Object
| Constructor and Description |
|---|
DateTime() |
| Modifier and Type | Method and Description |
|---|---|
static String |
dateToString(Date dtK,
String sFormat)
It trnasforms one date in one String
|
static Date |
getCurrentDate()
returns the current date
|
static Date |
stringToDate(String sDate)
It transfoms one String in one Date
|
public static Date getCurrentDate()
public static String dateToString(Date dtK, String sFormat)
dtK - DatesFormat - Date format. Example: "Y-m-d H:i:s.Z";