Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Regarding the Date Format View modes: 
User avatar
Member
Member
sansugoi_sayounara-hotmail - 3/25/2010 7:11:43 AM
   
Regarding the Date Format
Hi all,

In the Corporate Test site in Event list page the Date is displaying in the format MM/DD/YYYY HH:MM:SS AM/PM

I want to change it to

DD/MM/YYYY HH:MM:SS AM/PM ,

How can I change th format of the date to DD/MM/YYYY

Please help as I am new to Kentico..

Thanks in Advance
Sansugoi

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/25/2010 8:09:08 AM
   
RE:Regarding the Date Format
Hi Sansugoi,

The date/time format is displayed according the current culture. It accesses the standard Windows database (on server) and uses the format of current culture. I would recommend you to find out which culture uses your format and then change the culture of needful web parts. Please see here for a sample code:
http://devnet.kentico.com/FAQs/Multilingual-support/How-to-to-display-a-control-in-culture-different-f.aspx

Please clone the web part before changing its code - http://devnet.kentico.com/docs/devguide/modifying_the_code_of_standard_web_parts.htm.


Optionally, you can change the Windows settings in:
Start -> Settings -> Control panel -> Regional and Language Options -> select culture -> Customize


Best regards,
Helena Grulichova