首页 新闻 会员 周边

Mvc中路由规则怎么传时间格式的参数

0
悬赏园豆:5 [待解决问题]

Mvc中路由规则怎么传时间格式的参数,如(2013-5-6 01:00:00)

阿连的主页 阿连 | 初学一级 | 园豆:136
提问于:2013-05-27 18:37
< >
分享
所有回答(4)
0

提一个思路, 自己来格式化

悟了 | 园豆:521 (小虾三级) | 2013-05-27 18:39
0

在php中,时间喜欢用今天距离:1970-01-01多少毫秒。

Supper_litt | 园豆:827 (小虾三级) | 2013-05-28 11:05
0

routes.Maproute("controllerName","{year}-{month}-{day} {hour}:{minute}:{second}"

,new {controller="controllerName",action="index"}

,new {year=@"\d{4}",month=@"\d{2}",day=@"\d{2}",hour=@"\d{2}",minute=@"\d{2}",second=@"\d{2}"

})

jingjunfeng | 园豆:873 (小虾三级) | 2013-05-28 11:09
0

配置一个穿时间格式的路由

小兵仔 | 园豆:1240 (小虾三级) | 2013-07-18 17:36
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册