Set LocalID to UK

This small piece of code is used to set the locality ID to UK to ensure dates and other regional data is set correctly. produces dates as dd/mm/yyyy if you enter Now() or Date() Add the following code to your ASP section on the web pages you wish to use it

'Sets the Locale ID session property to UK region
Session.LCID = 2057

Remembering to include ASP starter and closing tags

Carl Grint

Carl Grint" Since graduating from university, I have worked with Charities and the Public sector, with my longest time being 3 years with the NHS until returning to freelance in 2003.

I would like to think my diverse experience of working for both the Public and Private sector gives me a good all rounding which enables me to approach projects with a unique perspective and enables me to bring new thoughts and initiatives to my work.

I have always enjoyed passing on the lessons I have learned so other developers can bypass the 'working out' time I had to go through, and writing my first two articles for DMXzone has given me a chance to pass on what I think are some good ways to improve on the standard Authentication behaviours Macromedia supply with Dreamweaver."

See All Postings From Carl Grint >>

Comments

Be the first to write a comment

You must me logged in to write a comment.