| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.format.DateFormatter |
Utility methods to format dates.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DateFormatter() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static String |
currentDate()
Format the current local date as
YYYY/MM/DD. | ||||||||||
| static String |
currentDateGMT()
Format the current GMT date as
YYYY/MM/DD. | ||||||||||
| static String |
formatLocalDate(String f)
Format the local date.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Format the current local date as YYYY/MM/DD.
Format the current GMT date as YYYY/MM/DD.
Format the local date.
The following patterns are replaced:
- YYYY : year, 4 digits
- YY : year, last 2 digits
- MM : month, forcing 2 digits
- M : month
- DD : day of month, forcing 2 digits
- D : day of month
| f | format string |
|---|