Skip to content

Instantly share code, notes, and snippets.

@lindabjalla
Created February 20, 2016 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindabjalla/c9a09873bf06976dcef3 to your computer and use it in GitHub Desktop.
Save lindabjalla/c9a09873bf06976dcef3 to your computer and use it in GitHub Desktop.
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