Class DateUtils

java.lang.Object
org.ctan.site.services.DateUtils

public final class DateUtils extends Object
The class DateUtils contains the utilities for dates.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    The method formatDate provides means to format a date according to contains the ISO date format without the time.
    static String
    formatDateTime(long date)
    The method formatDateTime provides means to format a date according to contains the ISO date format including the time.
    static String
    The method formatDateTime provides means to format a date according to contains the ISO date format including the time.
    static String
    The method formatFullDateTime provides means to format a date according to contains the full ISO date format including the time.
    static String
    The method formatRfc3339 provides means to format a date according to contains the ISO date format including the time.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • formatDate

      public static String formatDate(Date date)
      The method formatDate 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

      public static String formatDateTime(Date date)
      The method formatDateTime 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

      public static String formatDateTime(long date)
      The method formatDateTime 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

      public static String formatFullDateTime(Date date)
      The method formatFullDateTime 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

      public static String formatRfc3339(Date date)
      The method formatRfc3339 provides means to format a date according to contains the ISO date format including the time.
      Parameters:
      date - the date
      Returns:
      the formatted date