|
Using Locale specific data
What happens if you have the time
on your page and you would like to display this in the correct
format , anyone who uses the web will tell you the difference
between filling out dates if you are in the US or say in the
UK . In this case we can use the LCID property of the Session
object and change the default for the server.
here is the script
<%
Dim arrLCID
arrLCID = (2057 ,1033 ,1036,1031,3081,4105)
Response.Write "Here are some dates modified by changing
the Session.LCID property<br>"
Response.Write "<TABLE><TR>"
Response.Write "<TH>LCID</TH>"
Response.Write "<TH>Date / Time</TH>"
Response.Write "</TR>"
For i = 0 to UBound(arrLCID)
Session.LCID = arrLCID(i)
Response.Write "<TR>"
Response.Write "<TD>arrLCID(i)</TD>"
Response.Write "<TD>Now</TD>"
Response.Write "</TR>"
Next
Response.Write "</TABLE>"
%>
|