from Microsoft Article published on April 29, 2005
The following subroutine dynamically sets the Locale ID for the ASP application (Session.LCID) according to the Language settings supplied by the user's browser:
Sample ASP Page
The following sample code may be used to demonstrate the Locale changes. To demonstrate the changes, create an ASP page with the following code and view it in the browser. In the Internet Options (or Preferences) section, modify your Languages settings and refresh the ASP page.
NOTE: The SetLCID() code sample was placed in an include file called setlcid.inc.
<%@ Language=VBScript %>
<%
SetLCID 'Set the Locale ID per the browser
Response.Write "Date/Time Formats"
Response.Write "Date = " & Date()
Response.Write "
Month = " & Month(Date())
Response.Write "
Day = " & Day(Date())
Response.Write "
Year = " & Year(Date())
Response.Write "
Time = " & Time()
Response.Write "
Currency Formats"
Response.Write "
" & FormatCurrency(1.05, 2)
Response.Write "
" & FormatNumber(1000000,2)
Response.Write "
" & FormatNumber(-1000000,2)
%>