Setting the website locale in asp

Lots of companies these days have a website (and even more still don’t) and an ever increasing number of clients are contacting me for a redevelopment.

A website I ‘adopted’ required maintenance of the old website during the build of the new site. I came to their news page and noticed a nasty asp script the original developer had used to convert the date from US to UK format (mm/dd/yyyy to dd/mm/yyyy) .

To set the date as UK style or any style, use theĀ  LCID property in asp. For UK the value is 2057. To set the session you simply use

<%Session.LCID = 2057%>

You can even use this to format currency.

As always a great resource is the w3schools website, here is the LCID property page on w3schools.

1 Response to “Setting the website locale in asp”


  1. 1 Carl

    Hey thanks for this I was looking or something that would do this but didn`t know what to search on

Leave a Reply