Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Method findFinishedWorkItemsBetweenStartDateAndEndDate() in WorkItemService
public List<WorkItem> findFinishedWorkItemsBetweenStartDateAndEndDate(String startDate, String endDate)
{
Date startDateInDateFormat = null;
Date endDateInDateFormat = null;
try
{
startDateInDateFormat = new SimpleDateFormat("yyyy-MM-dd").parse(startDate);
endDateInDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(endDate + "T23:59:59");
}
catch (ParseException e)
{
e.printStackTrace();
}
return superRepository.findFinishedWorkItemsBetweenStartDateAndEndDate(startDateInDateFormat, endDateInDateFormat);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment