Wrong Regional Setting

F

Fran Lacne

Hello
My OS is W2k in Spanish, buy I've changed the regional settings to work with
dates formatted in English.
In spite of this,
System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat doesn't
reflect that setting, and I don't know how to make it work.

I've done the above changes, restarted my machine, then rebuilt the solution
and nothing happens.

When I do a DateTime.Parse(string d) I get an error when the day is greater
than 12. For example: 13/1/2006 would work, but 1/13/2006 won't. This is, it
is working with Spanish formats.

This is what I get in my Command inmediate window:
System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat
{System.Globalization.DateTimeFormatInfo}
System.Object: {System.Globalization.DateTimeFormatInfo}
abbreviatedDayNames: <undefined value>
AbbreviatedDayNames: {Length=7}
AbbreviatedEnglishEraNames: {Length=0}
AbbreviatedEraNames: {Length=1}
abbreviatedMonthNames: <undefined value>
AbbreviatedMonthNames: {Length=13}
AllLongDatePatterns: {Length=3}
allLongDatePatterns: {Length=3}
allLongTimePatterns: <undefined value>
AllLongTimePatterns: {Length=4}
AllShortDatePatterns: {Length=7}
allShortDatePatterns: {Length=7}
allShortTimePatterns: <undefined value>
AllShortTimePatterns: {Length=3}
amDesignator: ""
AMDesignator: ""
bUseCalendarInfo: false
calendar: {System.Globalization.GregorianCalendar}
Calendar: {System.Globalization.GregorianCalendar}
calendarWeekRule: -1
CalendarWeekRule: FirstDay
CultureID: 3082
CurrentInfo: {System.Globalization.DateTimeFormatInfo}
DateSeparator: "/"
dateSeparator: "/"
DateWords: {Length=1}
DayNames: {Length=7}
dayNames: {Length=7}
DEFAULT_ALL_DATETIMES_SIZE: 132
EraNames: {Length=1}
FirstDayOfWeek: Monday
firstDayOfWeek: 1
FormatFlags: None
formatFlags: None
FullDateTimePattern: "dddd, dd' de 'MMMM' de 'yyyy H:mm:ss"
fullDateTimePattern: "dddd, dd' de 'MMMM' de 'yyyy H:mm:ss"
GeneralLongTimePattern: "dd/MM/yyyy H:mm:ss"
generalLongTimePattern: "dd/MM/yyyy H:mm:ss"
generalShortTimePattern: null
GeneralShortTimePattern: "dd/MM/yyyy H:mm"
genitiveMonthNames: <undefined value>
HasSpacesInMonthNames: false
invariantInfo: <undefined value>
InvariantInfo: {System.Globalization.DateTimeFormatInfo}
IsReadOnly: true
leapYearMonthNames: <undefined value>
longDatePattern: "dddd, dd' de 'MMMM' de 'yyyy"
LongDatePattern: "dddd, dd' de 'MMMM' de 'yyyy"
longTimePattern: "H:mm:ss"
LongTimePattern: "H:mm:ss"
m_abbrevEnglishEraNames: {Length=0}
m_abbrevEraNames: {Length=1}
m_dateWords: {Length=1}
m_eraNames: {Length=1}
m_isDefaultCalendar: true
m_isReadOnly: true
m_useUserOverride: true
MonthDayPattern: "dd MMMM"
monthDayPattern: "dd MMMM"
MonthNames: {Length=13}
monthNames: {Length=13}
MonthSpaces: {Length=2}
nDataItem: 57
OptionalCalendars: {Length=1}
optionalCalendars: {Length=1}
PMDesignator: ""
pmDesignator: ""
RFC1123Pattern: "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"
rfc1123Pattern: "ddd, dd MMM yyyy HH':'mm':'ss 'GMT'"
ShortDatePattern: "dd/MM/yyyy"
shortDatePattern: "dd/MM/yyyy"
shortTimePattern: "H:mm"
ShortTimePattern: "H:mm"
SortableDateTimePattern: "yyyy'-'MM'-'dd'T'HH':'mm':'ss"
sortableDateTimePattern: "yyyy'-'MM'-'dd'T'HH':'mm':'ss"
TimeSeparator: ":"
timeSeparator: ":"
universalSortableDateTimePattern: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'"
UniversalSortableDateTimePattern: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'"
yearMonthPattern: null
YearMonthPattern: "MMMM' de 'yyyy"

Best regards

fl
 
C

Cowboy \(Gregory A. Beamer\)

Change settings in Internet Explorer. :)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top