Web API ModelBinding From URI
问题 So I have a custom Model Binder implemented for DateTime type and I register it like below: void Application_Start(object sender, EventArgs e) { // Code that runs on application startup GlobalConfiguration.Configuration.BindParameter(typeof(DateTime), new CurrentCultureDateTimeAPI()); } and then I have setup 2 sample actions to see if my custom model binding takes place: [HttpGet] public void BindDateTime([FromUri]DateTime datetime) { //http://localhost:26171/web/api/BindDateTime?datetime=09