in the global.asax file, ive set the current culture as below
in my .aspx page, I have a date input like this
in my codebehind, I set the default date like this
and the date comes out in American format. Why is this ? eg 09/22/2009
protected void Application_BeginRequest(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
}
in my .aspx page, I have a date input like this
<
telerik:RadDatePicker ID="RadDatePickerNewsDate" runat="server" Calendar-CultureInfo="English (United Kingdom)" MinDate="01/01/2000 00:00:00" SkinID="Vista">
</telerik:RadDatePicker>
in my codebehind, I set the default date like this
this
.RadDatePickerNewsDate.SelectedDate = DateTime.Now;
and the date comes out in American format. Why is this ? eg 09/22/2009