Tuesday, 6 March 2012

Datetime field presentation in ASP.NET MVC and Rails views

There are plenty of similarities between ASP.NET MVC and Rails, but I do keep stumbling across things that set them apart.

I used MVC's scaffolding today to build me the standard CRUD-y interfaces. Some of my fields were datetime fields, and to my disappointment the interfaces I was given provided simple text input fields which clearly I'll have to modify to restrict entry to a date format.

This is in stark contrast to Rails, with which only last week I was doing the same thing - and the date fields were dd/mm/yyyy drop-downs. Nice.

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!