Hi Telerik team,
I've a question is how to display selecteddate in mm/yyyy format (remove day).
I've already set DateSelectionMode to Month but it's only for selecting a month not for displaying mm/yyyy format.
It's always show 1/mm/yyyy but I don't want day, I want it's mm/yyyy.
So what's solution for this problem?
Thanks.
I've a question is how to display selecteddate in mm/yyyy format (remove day).
I've already set DateSelectionMode to Month but it's only for selecting a month not for displaying mm/yyyy format.
It's always show 1/mm/yyyy but I don't want day, I want it's mm/yyyy.
So what's solution for this problem?
Thanks.
12 Answers, 1 is accepted
0
Hello Taufik Hidayat,
This is configurable vie the DateTimeFormat property. Follow the code posted bellow it will help you:
Greetings,
Kaloyan
the Telerik team
This is configurable vie the DateTimeFormat property. Follow the code posted bellow it will help you:
radDateTimePicker.Culture =
new
System.Globalization.CultureInfo(
"en-US"
)
{
DateTimeFormat =
new
System.Globalization.DateTimeFormatInfo
{
ShortDatePattern =
"MM/yyyy"
}
};
Greetings,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
tungnt185
Top achievements
Rank 2
answered on 08 Feb 2011, 05:07 AM
Thanks Kolayan,
I've configured and it's worked fine.
But there are an error here, Calendar Popup doesn't apply by culture.
It's always is "en-US" culture.
I don't know either this is a problem of control or my own.
Thanks.
I've configured and it's worked fine.
But there are an error here, Calendar Popup doesn't apply by culture.
It's always is "en-US" culture.
I don't know either this is a problem of control or my own.
Thanks.
0
Hello Taufik Hidayat,
Sorry for the late response. What culture are you trying to set? The RadCalendar is not supporting some
Asian cultures.
All the best,
Kaloyan
the Telerik team
Sorry for the late response. What culture are you trying to set? The RadCalendar is not supporting some
Asian cultures.
All the best,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
tungnt185
Top achievements
Rank 2
answered on 15 Feb 2011, 07:45 AM
Hi Kaloyan,
I'm using culture "vi-VN" Vietnamese.
Is it supported by the RadCalendar? And if no so when it's supported?
Regards.
I'm using culture "vi-VN" Vietnamese.
Is it supported by the RadCalendar? And if no so when it's supported?
Regards.
0
Hello Taufik Hidayat,
The Vietnamese is not currently supported. We have already logged the task in our TFS system.
All the best,
Kaloyan
the Telerik team
The Vietnamese is not currently supported. We have already logged the task in our TFS system.
All the best,
Kaloyan
the Telerik team
0
tungnt185
Top achievements
Rank 2
answered on 18 Feb 2011, 02:15 AM
Thanks Kaloyan,
Could I know which version resolve this problem?
My application really need it asap.
Best regards.
Could I know which version resolve this problem?
My application really need it asap.
Best regards.
0
Hi Taufik Hidayat,
Currently there is no estimated timeframe for the development of this feature.
Regards,
Kaloyan
the Telerik team
Currently there is no estimated timeframe for the development of this feature.
Regards,
Kaloyan
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Yao
Top achievements
Rank 1
answered on 02 Sep 2011, 08:57 AM
HI,ADMIN,
is supporting zn-CN cultures of RadCalendar?
my code:
this.dpDate.Culture = new System.Globalization.CultureInfo("zh-CN")
{
DateTimeFormat = new System.Globalization.DateTimeFormatInfo { ShortDatePattern = "yyyy-MM" }
};
but It's always "en-US" culture.
Thanks!
is supporting zn-CN cultures of RadCalendar?
my code:
this.dpDate.Culture = new System.Globalization.CultureInfo("zh-CN")
{
DateTimeFormat = new System.Globalization.DateTimeFormatInfo { ShortDatePattern = "yyyy-MM" }
};
but It's always "en-US" culture.
Thanks!
0
Hi Yao,
I've tested the provided code with the latest version of RadDateTimePicker and it works without a problem at our side, please check the attachment.
All the best,
Yana
the Telerik team
I've tested the provided code with the latest version of RadDateTimePicker and it works without a problem at our side, please check the attachment.
All the best,
Yana
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0
Yao
Top achievements
Rank 1
answered on 05 Sep 2011, 02:19 AM
Thanks Yana,
i'm tested another verison (2011.2.712.1040), but it's the same problem
can you share your demo?
thanks!
i'm tested another verison (2011.2.712.1040), but it's the same problem
can you share your demo?
thanks!
0
Hello Yao,
Using the DateTimeFormatInfo constructor directly in your application creates date/time information for the invariant culture only. Instead of creating a new instance of DateTimeFormatInfo you should just override some of the values associated with the chosen culture. Here is sample code how this should be done:
Sorry for the inconvenience caused.
Best wishes,
Ivo
the Telerik team
Using the DateTimeFormatInfo constructor directly in your application creates date/time information for the invariant culture only. Instead of creating a new instance of DateTimeFormatInfo you should just override some of the values associated with the chosen culture. Here is sample code how this should be done:
this
.radDateTimePicker.Culture =
new
System.Globalization.CultureInfo(
"zh-CN"
);
this
.radDateTimePicker.Culture.DateTimeFormat.ShortDatePattern =
"yyyy-MM"
;
Sorry for the inconvenience caused.
Best wishes,
Ivo
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
0
Yao
Top achievements
Rank 1
answered on 07 Sep 2011, 07:29 AM
thanks,
This problem has been resolved!
This problem has been resolved!