Package com.pnfsoftware.jeb.util.format
Class DateFormatter
java.lang.Object
com.pnfsoftware.jeb.util.format.DateFormatter
Utility methods to format dates.
-
Constructor Details
-
DateFormatter
public DateFormatter()
-
-
Method Details
-
formatLocalDate
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- Parameters:
f
- format string- Returns:
- the formatted string
-
currentDate
Format the current local date asYYYY/MM/DD
.- Returns:
-
currentDateGMT
Format the current GMT date asYYYY/MM/DD
.- Returns:
-