LCID

The LCID property specifies how dates, times, and currencies are formatted. LCIDs are not the same for each geographical locale. Some locales format dates as YY-MM-DD and some format dates as MM-DD-YYYY. The LCID property is read/write.

Settings and Return Values

Sets or returns an Integer value.

Remarks

Setting Response.LCID explicitly affects the current content, where Mail.LCID affects all contents of a mail message.

Response.LCID can be set multiple times in one content, and the date can be displayed each time; however, the codepage must be set once to show all the characters. 

You can find locale integers at MSDN Library.

Example

The following example displays. The home page is saved in UTF-8 format so characters from all languages can be shown.

--- Content_Response_LCID.vbs ---

Response.Codepage = 65001
Response.Charset = "utf-8"

ShowDateTimeCurrency 1033, "North America"
ShowDateTimeCurrency 1041, "Japan"
ShowDateTimeCurrency 1049, "Russia"
ShowDateTimeCurrency 1031, "Germany"
ShowDateTimeCurrency 1025, "Saudi Arabia"
ShowDateTimeCurrency 1081, "India"
ShowDateTimeCurrency 2052, "China"
ShowDateTimeCurrency 1042, "Korea"

Sub ShowDateTimeCurrency(iLCID, sLocale)
  Response.LCID = iLCID
  Response.Write "<B>" & sLocale & "</B><BR>"
  Response.Write FormatDateTime(Date, 1) & "<BR>"
  Response.Write FormatDateTime(Time, 3) & "<BR>"
  Response.Write FormatCurrency(1000) & "<BR>"
  Response.Write FormatNumber(50, 3, 0, 0, -1) & " & " & FormatNumber(.02, 3, 0, 0, -1) & "<BR><BR>"
End Sub
Applies To

Response Object

See Also

CodePage, Charset



©2001-2015 eMill. All trademarks property of their owners.