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