Portal Engine
Version 3.x > Portal Engine > DateTime with culture View modes: 
User avatar
Member
Member
Halim - 1/13/2009 2:34:27 AM
   
DateTime with culture
Hi,

How do I use the DateTime webpart with UI culture?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/13/2009 6:30:41 AM
   
RE:DateTime with culture
Hello,

Could you be more specific please? What you want to achieve?

In general you only need to place this web part on the page where you want to have it.


Best Regards,
Juraj Ondrus

User avatar
Member
Member
Halim - 1/14/2009 2:41:26 AM
   
RE:DateTime with culture
Hi Juraj,

Basically, I have a website with multiple language. So I would like to change the name of the month or day name every time I change the language. For example January in English, but when I change to Malay, it will change to Januari.

--
Regards,
Halim Dahlan

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/14/2009 5:13:12 AM
   
RE:DateTime with culture
Hi,

Thank you for clarification. In this case you need to create custom web part (http://www.kentico.com/docs/devguide/developing_web_parts.htm). You will get the date and time using standard .Net method. You will need to put this date and time into some literal to display it on the live site.

Moreover, you will need to create some decision code, for example CASE statement. Here you will pass the month number value from the date and then you will decide what will be displayed according to the number and the current site culture.

I hope it makes sense.

Best Regards,
Juraj Ondrus