In Windows Registry, there are some locale settings for dates. See
the following MSDN notes:
LCTYPE Constants
An LCTYPE constant is a constant that specifies a particular piece
of locale information.
The values in the following list correspond to the names of these
values in the configuration registry, under both the user's
preferences (as values in the registry key HKEY_CURRENT_USER\Control
Panel\International) and the system's installed languages (as files
pointed to by registry keys, one key per language installed, under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\NLS). All values
are null-terminated Unicode strings. If no maximum length is
indicated, the strings may vary in length.
Constant Description
LOCALE_SDATE Character(s) for the date separator.
LOCALE_STIME Character(s) for the time separator.
LOCALE_STIMEFORMAT Time formatting strings for this locale. The
string can consist of a combination of the hour, minute, and second
format pictures defined in the Hour, Minute, and Second Format
Pictures table in National Language Support Constants.
LOCALE_SYEARMONTH The Year/Month formatting string for the locale.
This string shows the proper format for a date string that contains
only the year and the month.
LOCALE_SSHORTDATE Short date formatting string for this locale. The
string can consist of a combination of day, month, and year format
pictures defined in Day, Month, Year, and Era Format Pictures table
in National Language Support Constants.
LOCALE_SLONGDATE Long date formatting string for this locale. The
string can consist of a combination of day, month, and year format
pictures defined in the Day, Month, Year, and Era Format Pictures
table in National Language Support Constants and any string of
characters enclosed in single quotes. Characters in single quotes
remain as given.
LOCALE_IDATE Short date format-ordering specifier. The maximum
number of characters allowed for this string is 2. The specifier can
be one of the following values:
Value Meaning
0 Month-Day-Year
1 Day-Month-Year
2 Year-Month-Day
LOCALE_ILDATE Long date format-ordering specifier. The maximum
number of characters allowed for this string is 2. The specifier can
be one of the following values:
Value Meaning
0 Month-Day-Year
1 Day-Month-Year
2 Year-Month-Day
LOCALE_ITIME Time format specifier. The maximum number of characters
allowed for this string is 2. The specifier can be one of the
following values:
Value Meaning
0 AM / PM 12-hour format
1 24-hour format
LOCALE_ICENTURY Specifier for full 4-digit century. The maximum
number of characters allowed for this string is 2. The specifier can
be one of the following values:
Value Meaning
0 Abbreviated 2-digit century
1 Full 4-digit century
LOCALE_ITLZERO Specifier for leading zeros in time fields. The
maximum number of characters allowed for this string is 2. The
specifier can be one of the following values:
Value Meaning
0 No leading zeros for hours
1 Leading zeros for hours
LOCALE_IDAYLZERO Specifier for leading zeros in day fields. The
maximum number of characters allowed for this string is 2. The
specifier can be one of the following values:
Value Meaning
0 No leading zeros for days
1 Leading zeros for days
LOCALE_IMONLZERO Specifier for leading zeros in month fields. The
maximum number of characters allowed for this string is 2. The
specifier can be one of the following values:
Value Meaning
0 No leading zeros for months
1 Leading zeros for months
LOCALE_S1159 String for the AM designator.
LOCALE_S2359 String for the PM designator.
LOCALE_ICALENDARTYPE Current calendar type. This type can be one of
these values:
Value Meaning
1 Gregorian (as in United States)
2 Gregorian (English strings always)
3 Era: Year of the Emperor (Japan)
4 Era: Year of Taiwan Region
5 Tangun Era (Korea)
LOCALE_IOPTIONALCALENDAR Additional calendar types. This can be a
zero-separated list of one or more of these calendars type values:
Value Meaning
0 No additional types valid
1 Gregorian (as in United States)
2 Gregorian (English strings always)
3 Era: Year of the Emperor (Japan)
4 Era: Year of Taiwan Region
5 Tangun Era (Korea)
LOCALE_IFIRSTDAYOFWEEK Specifier for the first day in a week. The
specifier can be one of these values:
Value Meaning
0 LOCALE_SDAYNAME1
1 LOCALE_SDAYNAME2
2 LOCALE_SDAYNAME3
3 LOCALE_SDAYNAME4
4 LOCALE_SDAYNAME5
5 LOCALE_SDAYNAME6
6 LOCALE_SDAYNAME7
LOCALE_IFIRSTWEEKOFYEAR Specifier for the first week of the year.
The specifier can be one of these values:
Value Meaning
0 Week containing 1/1 is the first week of that year.
1 First full week following 1/1 is the first week of that year.
2 First week containing at least 4 days is the first week of that
year.
LOCALE_SDAYNAME1 Native long name for Monday.
LOCALE_SDAYNAME2 Native long name for Tuesday.
LOCALE_SDAYNAME3 Native long name for Wednesday.
LOCALE_SDAYNAME4 Native long name for Thursday.
LOCALE_SDAYNAME5 Native long name for Friday.
LOCALE_SDAYNAME6 Native long name for Saturday.
LOCALE_SDAYNAME7 Native long name for Sunday.
LOCALE_SABBREVDAYNAME1 Native abbreviated name for Monday.
LOCALE_SABBREVDAYNAME2 Native abbreviated name for Tuesday.
LOCALE_SABBREVDAYNAME3 Native abbreviated name for Wednesday.
LOCALE_SABBREVDAYNAME4 Native abbreviated name for Thursday.
LOCALE_SABBREVDAYNAME5 Native abbreviated name for Friday.
LOCALE_SABBREVDAYNAME6 Native abbreviated name for Saturday.
LOCALE_SABBREVDAYNAME7 Native abbreviated name for Sunday.
LOCALE_SMONTHNAME1 Native long name for January.
LOCALE_SMONTHNAME2 Native long name for February.
LOCALE_SMONTHNAME3 Native long name for March.
LOCALE_SMONTHNAME4 Native long name for April.
LOCALE_SMONTHNAME5 Native long name for May.
LOCALE_SMONTHNAME6 Native long name for June.
LOCALE_SMONTHNAME7 Native long name for July.
LOCALE_SMONTHNAME8 Native long name for August.
LOCALE_SMONTHNAME9 Native long name for September.
LOCALE_SMONTHNAME10 Native long name for October.
LOCALE_SMONTHNAME11 Native long name for November.
LOCALE_SMONTHNAME12 Native long name for December.
LOCALE_SMONTHNAME13 Native name for 13th month, if exists.
LOCALE_SABBREVMONTHNAME1 Native abbreviated name for January.
LOCALE_SABBREVMONTHNAME2 Native abbreviated name for February.
LOCALE_SABBREVMONTHNAME3 Native abbreviated name for March.
LOCALE_SABBREVMONTHNAME4 Native abbreviated name for April.
LOCALE_SABBREVMONTHNAME5 Native abbreviated name for May.
LOCALE_SABBREVMONTHNAME6 Native abbreviated name for June.
LOCALE_SABBREVMONTHNAME7 Native abbreviated name for July.
LOCALE_SABBREVMONTHNAME8 Native abbreviated name for August.
LOCALE_SABBREVMONTHNAME9 Native abbreviated name for September.
LOCALE_SABBREVMONTHNAME10 Native abbreviated name for October.
LOCALE_SABBREVMONTHNAME11 Native abbreviated name for November.
LOCALE_SABBREVMONTHNAME12 Native abbreviated name for December.
LOCALE_SABBREVMONTHNAME13 Native abbreviated name for 13th month, if
exists.
When programming there is a way to set your program to use the
default date format used by the system you are working on. I am
not a
programmer but I have done lots of testing for programmers in the
past and this problem often crops up. It is best solved by using
the
default system as defined in the regional settings on a computer.
Regards
Terry
> From: Anders Landenstad [mailto:anders.landenstad@t…]
> Sent: Thursday, May 06, 2004 01:12 PM
> To: sailwave@yahoogroups.com
> Subject: [sailwave] Re: date forms
>
>
> Hi Bill and Colin,
>
> i Scandinavia we use YYYY/MM/DD and YY/MM/DD
>
> /Anders
>
> — In sailwave@yahoogroups.com, "Bill Hunt" <webmaster@b…>
wrote:
> > Hi Colin,
> >
> > You are correct, mm/dd/yy or mm/dd/yyyy are the common forms. I
> rarely if
> > ever see dd/mm/yyyy here in the states.
> >
> > -Bill
> >
> > From: Colin Jenkins [mailto:colin@s…]
> > Sent: Thursday, May 06, 2004 6:11 AM
> > To: sailwave@yahoogroups.com
> > Subject: [sailwave] date forms
> >
> > Am I right in thinking that in the USA ( at least) the most
common
> short
> > date form is mm/dd/yy, as opposed to our UK date form of
> dd/mm/yy? Or do
> > you use both equally as much…? If the former, it would
> presumably be
> > something of an irritant to have to enter dd/mm/yy…? The
> context here is
> > dates in start/finish times.
> >
> > Regards,
> > Colin
> > www.sailwave.com
> >
> >
> > —
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.676 / Virus Database: 438 - Release Date:
03/05/2004
···
--- In sailwave@yahoogroups.com, "Terry" <terry.home@h...> wrote:
> -----Original Message-----
> > -----Original Message-----
> >
> >
> >
> >
> > -!- Tired of Hotmail? Try Fastmail -!- http://www.fastmail.fm/
> > -!- Sick of Spam? Get Spam Pal <free!> -!-
> > http://www.spampal.org/
> > http://www.sailwave.com/
> >
> > Convert to daily digest of emails send blank email to:
> > sailwave-digest@yahoogroups.com
> > Yahoo! Groups Links
>
>
>
> -!- Tired of Hotmail? Try Fastmail -!- http://www.fastmail.fm/
> -!- Sick of Spam? Get Spam Pal <free!> -!-
> http://www.spampal.org/
> http://www.sailwave.com/
>
> Convert to daily digest of emails send blank email to:
> sailwave-digest@yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>