com.spun.util.date.DateRangeUtils Maven / Gradle / Ivy
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 - 2024 Weber Informatics LLC | Privacy Policy