MonthName() function returns a non-english string

Posted on 2006-04-04
Medium Priority
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)
Question by:Pi7

Accepted Solution

esw074 earned 1000 total points
ID: 16369441
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.


Author Comment

ID: 16369500
yo pal, it did the trick thanx a million

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question