Wednesday, 8 August 2012

ASP.NET Auto Correcting Date Format to "dd/MM/yyyy"

Hello,
I've Answered : http://forums.asp.net/t/1799621.aspx/1?Auto+Correcting+Date+Format+to+dd+MM+yyyy+

You needs to do following two things.
  1. Set Culture in web.config as given below
    uiCulture="en-GB" culture="en-GB" .
  2. Set your form method to POST as I have mentioned below
using (Html.BeginForm("DailyReport", "Reports", FormMethod.Post, new { id = "ActivityReport" }))

DailyReport is your controller action method, Reports is controller and most important thing isFormMethod.Post by setting form method to POST will solve your Date format problem.

1 comments:

zalikafabbro said...

Harrah's Cherokee Casinos begin reopening on March 3
Harrah's 대구광역 출장안마 Cherokee Casinos is gearing up to reopen the casinos 삼척 출장안마 this week, but 사천 출장안마 is 하남 출장마사지 it more than the first tribal casino in North Carolina 충주 출장마사지 to reopen?Jan 26, 2022Harrah's Cherokee Casino Resort

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More