Hi,
I would like to display the date in the following format : "dd/MM/yyyy hh:mm:ss" instead of the default "dd/MM/yyyy hh:mm", or in other words, I want to add seconds.
I've tried the following :
But I encounter a strange problem. I get the following format : "dd/MM/yyyy hh:mm:ss hh:mm".
What am I doing wrong?
Thank you
I would like to display the date in the following format : "dd/MM/yyyy hh:mm:ss" instead of the default "dd/MM/yyyy hh:mm", or in other words, I want to add seconds.
I've tried the following :
CultureInfo cultureInfo =
new
CultureInfo(
"es-ES"
);
DateTimeFormatInfo dateInfo =
new
DateTimeFormatInfo();
dateInfo.ShortDatePattern =
"dd/MM/yyyy hh:mm:ss"
;
cultureInfo.DateTimeFormat = dateInfo;
RadDateTimePicker newTime =
new
RadDateTimePicker();
newTime.Culture = cultureInfo;
But I encounter a strange problem. I get the following format : "dd/MM/yyyy hh:mm:ss hh:mm".
What am I doing wrong?
Thank you