Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateFormat and Culture
Message
From
09/03/2016 09:30:12
 
 
To
09/03/2016 09:09:34
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01632723
Message ID:
01632728
Views:
42
Thanks Craig,

I am not seeing how to "translate" that article to my specific problem. That seems to convert the display of a date in a textbox to whatever is the current culture's date display format.

Shouldn't the code I used below have worked?


>http://www.codeproject.com/Articles/3612/Use-of-different-Date-Time-formats-and-Culture-typ
>
>
>>Hi,
>>
>>using C# and ASP.NET for a web site. When I run the stuff locally, my dates display in dd/mm/yyyy format which is what I want. When I install it on a web server which has its date formatting set to mm/dd/yyyy the web pages display dates in mm/dd/yyyy format.
>>
>>What I would like is the dates to display in the format set on the PC that is accessing the web site. I am using DevExpress and their advice was to use this:
>>
>>
        protected void Page_Load(object sender, EventArgs e)
>>        {
>>            (ASPxGridViewMain.Columns["Timestamp"] as GridViewDataDateColumn).PropertiesDateEdit.DisplayFormatString = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;
>>        }
>>
>>
>>This doesn't seem to be working.
>>
>>Any suggestions as to how to get this to work?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform