The Active Server Pages Session object includes an under-used property called LCID. The LCID, or locale identifier, helps you format your ASP code to suit your target audience.For instance, Canada tends to use dd/mm/yy to format dates while Germany uses dd.mm.yy.Here’s some example ASP code that shows how the same date takes on a different look according to the LCID:
<%USEnglish=1033EnglishCanada=4105German=1031thedate=date()Session.LCID=USEnglishResponse.Write thedate & "
"Session.LCID=EnglishCanadaResponse.Write thedate & "
"Session.LCID=GermanResponse.Write thedate & "
The code produces this output in the browser:
For more information on language codes, check http://www.microsoft.com/OpenType/otspec/lcid-cp.txt.