This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Session.Contents Collection
The Session.CodePage Property
The Session.Contents.RemoveAll() Method
The Session.Contents.Remove(name|index) Method
The Session.Abandon Method
The Session.OnStart() Event
The Session.OnEnd() Event
The Session Object
The Server.ScriptTimeOut Property
The Server.URLEncode Method
The Server.Transfer Method
The Server.MapPath Method
The Server.HTMLEncode Method
The Server.GetLastError Method
The Server.Execute Method
The Server.CreateObject Method
The Server Object
The Response.Status Property
The Response.PICS Property
The Response.LCID Property
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :2627

 

The Session.LCID Property

Introduction

The Session.LCID (Local Identifiers) property can be used to specify how dates, times and currencies are formatted for a specific location. The local formats are not the same for each location. For example in Germany the date is formatted DD.MM.YYYY and in USA you use MM.DD.YYYY. In Germany you use the € currency sign and in USA you use the $ currency sign. This property only affects the complete session and not the current page only. If you need to set this setting for the current page use the Response.LCID property. Here you can find a list of the Local Identifiers (LCID).

Example

<%

            Response.Write "<b><u>Date/Time/Currency in German format:</u></b><br/>"

            ' Set the the LCID to Germany

            Session.LCID = 1031

            ' Use the Format Currency method to print out the currency

           

            ' Currency in Euro/Germany format

            Response.Write FormatCurrency(199)

           

            Response.Write "<br/>"

            ' Date and time in Germany format

            Response.Write FormatDateTime(Time, 1)

            Response.Write "<br/><br/><b><u>Date/Time/Currency in USA format:</u></b><br/>"

            ' Set the the LCID to Germany

            Session.LCID = 1033

            ' Use the Format Currency method to print out the currency

           

            ' Currency in Euro/Germany format

            Response.Write FormatCurrency(199)

           

            Response.Write "<br/>"

            ' Date and time in Germany format

            Response.Write FormatDateTime(Time, 1)

%

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP