2
Answers

Pass date as parameter to action method in ASP.Net MVC

Photo of shivendra pratik

shivendra pratik

8y
8.5k
1
Hi,
 
I want to pass a date in mm/dd/yyyy format to an action method in ASP.Net MVC. the url should be 
http://localhost/SearchInvoices/dd/mm/yyyy
 
First, is it possible to make a route which can handle this? i.e. is it possible to pass date in the url as mentioned above ?
If yes, then how we can acheive this.
 
Secondly, is there any other way to acheive this ?

Answers (2)