Skip to main content

Posts

Featured

ASP.NET MVC Don’t mess up with date formats and UI culture

Download source when i first came with the requirement of parsing/displaying all dates as dd/mm/yyyy instead of mm/dd/yyyy (the default format) in my new ASP.NET mvc project, i was like huh! consider it done. Btw, isn’t it the format for culture en-AU? It sure is, cuz this is an all Australian company! So i went on changing my Web.config to add the globalization entry and then spent some stackoverflow (what would we do without this site) moments and within next couple of hours i was on my moment WTF… And today, i found another source during a code review, a developer trying to achieve the same thing ended up with some string properties for each DateTime property and manually parsing everytime those values being bound in the server-side. I found the developer tried all those steps available in stackoverflow by cnp(copy n paste). So i think we developers are often poised to make some changes in our code according to some instructions and hope this will solve our issue in-hand and we j

Latest Posts

ASP.NET Mini Profiler with NHibernate

A Default DDD Architecture with Auto-mapping Domain Entities