I'm currently working on a ASP.NET MVC 3 project with use of Attributes on models to allow fast views creation (the attributes like [Required]
, [DisplayName("foo")]
etc...)
In this project, i have some dates stored values formatted as string like "20120801" for example.
Is there a way to use the attribute :
[DisplayFormat(DataFormatString = "something")]
or something else to transform YYYYMMDD to YYYY-MM-DD. In my example, showing on view "2012-08-01" instead of "20120801".
Thank's by advance !