We help IT Professionals succeed at work.

MonthName() function returns a non-english string

Pi7
Pi7 asked
on
Medium Priority
2,041 Views
Last Modified: 2008-01-09
Hi experts, I'm doing some vbscripting and I'm using the MonthName () as well as WeekdayName() functions.
My problem is that though these functions return results allright, the result strings are not in english
e.g. MonthName(10,true) returns 'okt' and WeekdayName(2) returns 'mandaag'
I want these results in english, how do I do it
I've checked my Regional and Language settings and the language is
English(United States)
Comment
Watch Question

Commented:
Try adding:

<% Session.LCID = 1033 %>

Place this at the top of the page, or in your global.asa file.  This changes the Locale ID to the US setting.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Pi7

Author

Commented:
yo pal, it did the trick thanx a million
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.