shivendra pratik

shivendra pratik

  • NA
  • 42
  • 8.3k

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

Jun 30 2017 1:23 AM
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)