API
Version 7.x > API > Outputting dates and currencies to users region View modes: 
User avatar
Certified Developer 8
Certified Developer 8
spencer.h-mmtdigital.co - 1/31/2014 6:27:10 AM
   
Outputting dates and currencies to users region
I have a CMS desk user set to UK culture but outputting currencies and dates is rendering as US format.

This is an international based system and needs to support users regions and formatting to their appropriate regional variations. So I need to support US / UK / DE / AU etc....

For example a repeater control outputting a currency format as follows:
<%#DataBinder.Eval(Container.DataItem,"CurrentTermFee","{0:c}") %>

This is always output to US Dollars.

The session LCID is US which I assumed was being used to format regional data. This is how I apply regional variations on other non Kentico applications.

Kentico tell me the region is specified in the cookie. I can see this being passed as UK but how do you apply it to your output? There must be an API call or control that formats your data based on the cookie region value?