MVC 2 Editor Template with DateTime
One of the cool new features of MVC 2 is the ability to automatically pick an editor template based on the meta data of each property. This meta data can be as simple as the data type of the property itself. Take an example where we have a Contact object that has a DateTime? property for DateOfBirth. public partial class Contact { [DisplayName("First Name")] public string FirstName { get; set; } [DisplayName("Last Name")] public string LastName { get; set; } [DisplayNa...