Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 570601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:25:08+00:00 2026-05-13T13:25:08+00:00

Hopefully a quick answer for someone, but my google-fu has deserted me. In vbscript

  • 0

Hopefully a quick answer for someone, but my google-fu has deserted me.

In vbscript I can use “setlocale” to set the locale a script is running in. I need a javascript version.

So for example, say my user is using a browser with french settings, but I want numbers and dates to be in english and worked with as if they are english. Then in vbscript I could do

setlocale 2057 

to set to english locale

and then when I’m finished working with the numbers/ dates I can set back to french

setlocale 1036

Is there a javascript equivalent? How can I accomplish this in javascript?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:25:09+00:00Added an answer on May 13, 2026 at 1:25 pm

    No, there’s no way to choose locales in JavaScript.

    However, doing stuff in the US English locale is not generally a problem since that’s what JavaScript does anyway. If you handle Number​s with parseInt, toString and so on you will always be dealing with . for decimal points and there will be no thousands-separator. Date default formatting also uses English weekday and month names, and a browser-specific date format that ignores what your locale’s default would be.

    You have to go out of your way to get anything locale-specific in JavaScript, with methods like toLocaleString. The results are typically poor and inconsistent across browsers. If you want reliable localisation in your webapps, you have to do it yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three quick questions I've seen conflicting answers to that hopefully someone can
Just a couple of quick questions...not too hard to answer hopefully! How do I
I'm writing a virtual machine in C just for fun. Lame, I know, but
I have the following shell script and want to change the filename db_backup.sql to
I'm moving a project from SVN to git (completely, so no need for git
I have the following function + code to parse and query a webservice request
I'm having a spot of bother with Python (using for app engine). I'm fairly
SELECT * FROM myTable WHERE field1 LIKE 'match0' AND myfunc(t1.hardwareConfig) LIKE 'match1' Here is
So I've got a bit of an issue I'm trying to work through. Perhaps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.