Class DateUtils

java.lang.Object
net.hironico.common.utils.DateUtils

public class DateUtils extends Object
Utilities for manipulating dates
  • Constructor Details

    • DateUtils

      public DateUtils()
  • Method Details

    • isSameDay

      public static boolean isSameDay(Date date1, Date date2)
      Check if two dates represent the same calendar day. Compares only the year, month, and day components, ignoring time.
      Parameters:
      date1 - the first date to compare
      date2 - the second date to compare
      Returns:
      true if both dates represent the same calendar day, false otherwise or if either date is null