Date format and regional settings 
Author Message
 Date format and regional settings

I want to format dates as MMM, dd, YYYY in ENGLISH!
My regional settings are set for Israel, which means that I normally get the
dates in a Hebrew text.

Is it possible to get a date in English without changing the regional
settings?

TIA,
Yoram



Fri, 11 Oct 2002 03:00:00 GMT  
 Date format and regional settings
Yoram,

Use the Format function:
  Format(dtmYourDate, "MMM, dd, YYYY")

Simon Lewis


Quote:
> I want to format dates as MMM, dd, YYYY in ENGLISH!
> My regional settings are set for Israel, which means that I normally get
the
> dates in a Hebrew text.

> Is it possible to get a date in English without changing the regional
> settings?

> TIA,
> Yoram



Sat, 12 Oct 2002 03:00:00 GMT  
 Date format and regional settings
I need the date in ENGLISH and my regional settings are set for Israel's
time zone.
Using only the Format function the current date is:
??,27,2000
(probably you can't read the above probably)
and I want the month displayed in ENGLISH!!!

Yoram



Quote:
> Yoram,

> Use the Format function:
>   Format(dtmYourDate, "MMM, dd, YYYY")

> Simon Lewis



> > I want to format dates as MMM, dd, YYYY in ENGLISH!
> > My regional settings are set for Israel, which means that I normally get
> the
> > dates in a Hebrew text.

> > Is it possible to get a date in English without changing the regional
> > settings?

> > TIA,
> > Yoram



Mon, 14 Oct 2002 03:00:00 GMT  
 Date format and regional settings
To get the month displayed in English, you cannot use VBA's default
functions.

However, you can use the code on my site (link below), on the code samples
page, looking at the "basIntlFormats" module....it includes a replacement
for the FormatDateTime function that allows to specify a locale so that you
can get the string for 1033 (the LCID for US English) even when the control
panel is using 1037 (Hebrew).

--
MichKa
"Cause it's a bittersweet symphony, thats life..."  -- The Verve

random junk of dubious value, at the multilingual,
no scripts required, http://www.trigeminal.com/


Quote:
> I need the date in ENGLISH and my regional settings are set for Israel's
> time zone.
> Using only the Format function the current date is:
> ??,27,2000
> (probably you can't read the above probably)
> and I want the month displayed in ENGLISH!!!

> Yoram



> > Yoram,

> > Use the Format function:
> >   Format(dtmYourDate, "MMM, dd, YYYY")

> > Simon Lewis



> > > I want to format dates as MMM, dd, YYYY in ENGLISH!
> > > My regional settings are set for Israel, which means that I normally
get
> > the
> > > dates in a Hebrew text.

> > > Is it possible to get a date in English without changing the regional
> > > settings?

> > > TIA,
> > > Yoram



Mon, 14 Oct 2002 03:00:00 GMT  
 Date format and regional settings
Thanks Michael,

That's exactly what I need.
You also have a nice site.

Yoram



Quote:
> To get the month displayed in English, you cannot use VBA's default
> functions.

> However, you can use the code on my site (link below), on the code samples
> page, looking at the "basIntlFormats" module....it includes a replacement
> for the FormatDateTime function that allows to specify a locale so that
you
> can get the string for 1033 (the LCID for US English) even when the
control
> panel is using 1037 (Hebrew).

> --
> MichKa
> "Cause it's a bittersweet symphony, thats life..."  -- The Verve

> random junk of dubious value, at the multilingual,
> no scripts required, http://www.trigeminal.com/



> > I need the date in ENGLISH and my regional settings are set for Israel's
> > time zone.
> > Using only the Format function the current date is:
> > ??,27,2000
> > (probably you can't read the above probably)
> > and I want the month displayed in ENGLISH!!!

> > Yoram



> > > Yoram,

> > > Use the Format function:
> > >   Format(dtmYourDate, "MMM, dd, YYYY")

> > > Simon Lewis



> > > > I want to format dates as MMM, dd, YYYY in ENGLISH!
> > > > My regional settings are set for Israel, which means that I normally
> get
> > > the
> > > > dates in a Hebrew text.

> > > > Is it possible to get a date in English without changing the
regional
> > > > settings?

> > > > TIA,
> > > > Yoram



Mon, 14 Oct 2002 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. How Can I Change the Short Date Format At Regional Settings in Control Panel

2. Date format vbLongDate ignores server's regional settings

3. VBScript Date format- regional settings ?

4. reliable date formatting unrelated to regional settings

5. Setting the Regional Date and Time Settings.

6. Dates, MaskedBox, Regional settings and short date

7. Dates, MaskedBox, Regional settings and short date

8. Number format and regional settings

9. Regional Settings problem with Val(), Format$(), etc...

10. Formatting integers using regional settings

11. How to get the Regional Setting of ShortDate format

12. Change Windows Regional Date/Time setting

 

 
Powered by phpBB® Forum Software