How do I pass a datetime value as a URI parameter in asp.net mvc?

前端 未结 10 1116
孤城傲影
孤城傲影 2020-12-04 18:58

I need to have an action parameter that has a datetime value? Is there a standard way to do this? I need to have something like:

mysite/Controller/Action/2         


        
10条回答
  •  忘掉有多难
    2020-12-04 19:19

    i realize it works after adding a slash behind like so

    mysite/Controller/Action/21-9-2009 10:20/
    

提交回复
热议问题