All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spun.util.date.DateRangeUtils Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy