Class DateFormatUtils

java.lang.Object
overit.geocallapp.utilities.ux.ui.util.date.DateFormatUtils

public class DateFormatUtils extends Object
Utility class for formatting and retrieving names of dates, such as days of the week and months of the year.
Since:
19.0
  • Method Details

    • getMonthFullName

      public static String getMonthFullName(Date date, Teacher teacher)
      Retrieves the full name of the month for the specified Date.
      Parameters:
      date - the Date instance from which to extract the month
      teacher - the interface used to provide custom or localized translations
      Returns:
      the full name of the month (e.g., "January")
    • getMonthShortName

      public static String getMonthShortName(Date date, Teacher teacher)
      Retrieves the abbreviated name of the month for the specified Date.
      Parameters:
      date - the Date instance from which to extract the month
      teacher - the interface used to provide custom or localized translations
      Returns:
      the abbreviated name of the month (e.g., "Jan")
    • getDayFullName

      public static String getDayFullName(Date date, Teacher teacher)
      Retrieves the full name of the day of the week for the specified Date.
      Parameters:
      date - the Date instance from which to extract the day
      teacher - the interface used to provide custom or localized translations
      Returns:
      the full name of the day (e.g., "Monday")
    • getDayShortName

      public static String getDayShortName(Date date, Teacher teacher)
      Retrieves the abbreviated name of the day of the week for the specified Date.
      Parameters:
      date - the Date instance from which to extract the day
      teacher - the interface used to provide custom or localized translations
      Returns:
      the abbreviated name of the day (e.g., "Mon")
    • roundUpMinutes

      public static Date roundUpMinutes(Date target)
    • roundDownMinutes

      public static Date roundDownMinutes(Date target)
    • roundUpSeconds

      public static Date roundUpSeconds(Date target)