com.spun.util.date.DateRangeUtils Maven / Gradle / Ivy
The newest version!
package com.spun.util.date;
import com.spun.util.DateUtils;
import java.sql.Timestamp;
import java.util.Date;
public class DateRangeUtils
{
public static DateRange getDay(Timestamp date)
{
Date start = DateUtils.getStartOfXDaysAgo(0, date);
Date end = DateUtils.getStartOfXDaysAgo(-1, date);
DateRange range = new DateRange(start, end);
return range;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy