Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Change CultureInfo to include time
posted

Hi All,

Does anyone know how I make the WebDate Chooser to show Hours and minutes?

So for example when you choose a date, it will show you the date but also Hours and minutes, which the user can edit manually.

DateTime format in the WebDateChooser after choosing a date say 2nf of february will show:

02/02/2010 10:00

I tried to change using :

 Chooser_StartDate.Format = Infragistics.WebUI.WebSchedule.DateFormat.Short;

System.Globalization.

CultureInfo c = new System.Globalization.CultureInfo("en-US");

c.DateTimeFormat.DateSeparator =

"/";

c.DateTimeFormat.TimeSeparator =

":";

c.DateTimeFormat.ShortDatePattern =

"MM/dd/yyyy"; //'-'HH':'mm

 

c.DateTimeFormat.ShortTimePattern =

"HH:mm"; 

Chooser_StartDate.CalendarLayout.Culture = c;

 But this didnt work.... 

Thanks.

Yoni.

 

 

Parents
No Data
Reply Children
No Data