Package org.ctan.site.services
Class DateUtils
java.lang.Object
org.ctan.site.services.DateUtils
The class
DateUtils
contains the utilities for dates.-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatDate
(Date date) The methodformatDate
provides means to format a date according to contains the ISO date format without the time.static String
formatDateTime
(long date) The methodformatDateTime
provides means to format a date according to contains the ISO date format including the time.static String
formatDateTime
(Date date) The methodformatDateTime
provides means to format a date according to contains the ISO date format including the time.static String
formatFullDateTime
(Date date) The methodformatFullDateTime
provides means to format a date according to contains the full ISO date format including the time.static String
formatRfc3339
(Date date) The methodformatRfc3339
provides means to format a date according to contains the ISO date format including the time.
-
Method Details
-
formatDate
The methodformatDate
provides means to format a date according to contains the ISO date format without the time.- Parameters:
date
- the date- Returns:
- the formatted date
-
formatDateTime
The methodformatDateTime
provides means to format a date according to contains the ISO date format including the time.- Parameters:
date
- the date- Returns:
- the formatted date
-
formatDateTime
The methodformatDateTime
provides means to format a date according to contains the ISO date format including the time.- Parameters:
date
- the date- Returns:
- the formatted date
-
formatFullDateTime
The methodformatFullDateTime
provides means to format a date according to contains the full ISO date format including the time.- Parameters:
date
- the date- Returns:
- the formatted date
-
formatRfc3339
The methodformatRfc3339
provides means to format a date according to contains the ISO date format including the time.- Parameters:
date
- the date- Returns:
- the formatted date
-