Post reply

The message has the following error or errors that must be corrected before continuing:
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Note: this post will not display until it has been approved by a moderator.
Attachments: (Clear attachments)
Restrictions: 20 per post (20 remaining), maximum total size 32.00 MB, maximum individual size 32.00 MB
Uncheck the attachments you no longer want attached
Click or drag files here to attach them.
Other options
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview

Topic summary

Posted by sukishan
 - Aug 20, 2009, 12:51 PM
usually using a hosting company in another country, is how to change the date, time, and/or currency format to their own or international format.

Well, you'll be glad to know that this is relatively simple to do.

If you can run a global.asa file on your server then place the following into your global.asa file to change the locale settings throughout your site: -

'When a session starts on the server the following code will be run
Sub Session_OnStart

     'Set the server locale
     Session.LCID = 2057

End Sub 

If you can not use a global.asa file, place following into the top of each ASP page you wish to change the locale settings on: -

'Set the server locale
Session.LCID = 2057

The LCID number above, 2057, will set the locale settings on the server to United Kingdom English, to change the locale to your own country you will need to use the LCID Chart at the bottom of this page to find your own locale ID number and then replace 2057 with your own LCID number.

Please also be aware that your locale language files needs to be installed on the server, many severs will have multiple language files installed, but if you do select one that is not installed you may get the following error 'the specified LCID is not available' if you do you may need to contact your hosting company to persuade them to install your language files on there servers.

Please note that this will only change the format the dates, times, and currencies are shown in and will not move dates and times to another time zone. eg. mm/dd/yyyy to dd/mm/yyyy.