Using DataType Datetime how can i get the date format in dd/MM/yyyy while running on the local server getting in dd/MM/yyyy for but after publish on the server getting in MM/dd/yyyy format
I have tried
Without using DateTime.Now.ToString(), instead any variable
1. Convert.ToDateTime(TodayDate_Greater, System.Globalization.CultureInfo.GetCultureInfo("hi-IN").DateTimeFormat);
2. DateTime.ParseExact(TodayDate, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture);


Ravi Kiran ChanduriRank #1,159 · 1.6K reputationPosted Jun 5, 2018, 8:58 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jun 5, 2018, 9:02 PM EDT
Faisal PathanRank #291 · 8.6K reputationPosted Jun 5, 2018, 9:07 PM EDT