Package net.hironico.common.utils
Class DateUtils
java.lang.Object
net.hironico.common.utils.DateUtils
Utilities for manipulating dates
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateUtils
public DateUtils()
-
-
Method Details
-
isSameDay
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 comparedate2- the second date to compare- Returns:
- true if both dates represent the same calendar day, false otherwise or if either date is null
-