Start date and end date for API added (with tests)