I have an Api call like whose signature is like below
[Route("TaskToDo/{userId}/{dateFrom}/{dateTo}")]
public async Task<IActionResult> GetTaskToDo(string userId, DateTime dateFrom, DateTime dateTo)
I can't hit the api call in swagger when i enter date like '13-08-2020' because it assumes that it will expect in DD-MM-yyyy.
What is the best approach to solve this issue.. should i change the method signature and take the datetime in string
or
it should be defined that the api is expected to receive the date in a specific format.