PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

CultureInfo and South African dates

 
 
Mark Finkel
Guest
Posts: n/a
 
      23rd Sep 2003
Using the CultureInfo and setting it to en-ZA (South
Africa) dates are formatted yyyy/mm/dd. But the actual
usage in South Africa is dd/mm/yyyy.

I can get the proper date format by using another country
(e.g UK), but that returns the wrong currency.

Does anyone know how to get correct dates and currency for
South Africa?

 
Reply With Quote
 
 
 
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      24th Sep 2003
Hello Mark,

Thanks for posting in the group.

Based on my experience, the format of one cultureinfo is determined by the
setting in the control panel. So we could open Control panel->Regional
Setting and then change the format setting to English(South Africa). We
could see that the short date format is yyyy/mm/dd.

I suggest you use the "customize" button to change the setting of it and
then test it on your side.

Does that answer your question?

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Mark Finkel" <(E-Mail Removed)>
!Sender: "Mark Finkel" <(E-Mail Removed)>
!Subject: CultureInfo and South African dates
!Date: Tue, 23 Sep 2003 07:34:39 -0700
!Lines: 10
!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54451
!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Using the CultureInfo and setting it to en-ZA (South
!Africa) dates are formatted yyyy/mm/dd. But the actual
!usage in South Africa is dd/mm/yyyy.
!
!I can get the proper date format by using another country
!(e.g UK), but that returns the wrong currency.
!
!Does anyone know how to get correct dates and currency for
!South Africa?
!
!

 
Reply With Quote
 
Mark Finkel
Guest
Posts: n/a
 
      24th Sep 2003
Yanhong,

I am afraid it confirms that MS has the wrong format for
South Africa. What is involved in having MS correct it?

Mark

>-----Original Message-----
>Hello Mark,
>
>Thanks for posting in the group.
>
>Based on my experience, the format of one cultureinfo is

determined by the
>setting in the control panel. So we could open Control

panel->Regional
>Setting and then change the format setting to English

(South Africa). We
>could see that the short date format is yyyy/mm/dd.
>
>I suggest you use the "customize" button to change the

setting of it and
>then test it on your side.
>
>Does that answer your question?
>
>Best regards,
>Yanhong Huang
>Microsoft Online Partner Support
>
>Get Secure! - www.microsoft.com/security
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>--------------------
>!Content-Class: urn:content-classes:message
>!From: "Mark Finkel" <(E-Mail Removed)>
>!Sender: "Mark Finkel" <(E-Mail Removed)>
>!Subject: CultureInfo and South African dates
>!Date: Tue, 23 Sep 2003 07:34:39 -0700
>!Lines: 10
>!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
>!MIME-Version: 1.0
>!Content-Type: text/plain;
>! charset="iso-8859-1"
>!Content-Transfer-Encoding: 7bit
>!X-Newsreader: Microsoft CDO for Windows 2000
>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
>!Newsgroups: microsoft.public.dotnet.framework
>!Path: cpmsftngxa06.phx.gbl
>!Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework:54451
>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
>!X-Tomcat-NG: microsoft.public.dotnet.framework
>!
>!Using the CultureInfo and setting it to en-ZA (South
>!Africa) dates are formatted yyyy/mm/dd. But the actual
>!usage in South Africa is dd/mm/yyyy.
>!
>!I can get the proper date format by using another

country
>!(e.g UK), but that returns the wrong currency.
>!
>!Does anyone know how to get correct dates and currency

for
>!South Africa?
>!
>!
>
>.
>

 
Reply With Quote
 
Mark Finkel
Guest
Posts: n/a
 
      24th Sep 2003
Customizing the format does not help.

My asp.Net application gets the UserLanguage from Request,
then uses that to set the Culture for the thread. Since
the MS date format for South Africa is wrong, it displays
dates wrong.

Is there anyway to retrieve the customized date from the
browser and somehow have the asp.NET application use that
format?


>-----Original Message-----
>Hello Mark,
>
>Thanks for posting in the group.
>
>Based on my experience, the format of one cultureinfo is

determined by the
>setting in the control panel. So we could open Control

panel->Regional
>Setting and then change the format setting to English

(South Africa). We
>could see that the short date format is yyyy/mm/dd.
>
>I suggest you use the "customize" button to change the

setting of it and
>then test it on your side.
>
>Does that answer your question?
>
>Best regards,
>Yanhong Huang
>Microsoft Online Partner Support
>
>Get Secure! - www.microsoft.com/security
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>--------------------
>!Content-Class: urn:content-classes:message
>!From: "Mark Finkel" <(E-Mail Removed)>
>!Sender: "Mark Finkel" <(E-Mail Removed)>
>!Subject: CultureInfo and South African dates
>!Date: Tue, 23 Sep 2003 07:34:39 -0700
>!Lines: 10
>!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
>!MIME-Version: 1.0
>!Content-Type: text/plain;
>! charset="iso-8859-1"
>!Content-Transfer-Encoding: 7bit
>!X-Newsreader: Microsoft CDO for Windows 2000
>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
>!Newsgroups: microsoft.public.dotnet.framework
>!Path: cpmsftngxa06.phx.gbl
>!Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework:54451
>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
>!X-Tomcat-NG: microsoft.public.dotnet.framework
>!
>!Using the CultureInfo and setting it to en-ZA (South
>!Africa) dates are formatted yyyy/mm/dd. But the actual
>!usage in South Africa is dd/mm/yyyy.
>!
>!I can get the proper date format by using another

country
>!(e.g UK), but that returns the wrong currency.
>!
>!Does anyone know how to get correct dates and currency

for
>!South Africa?
>!
>!
>
>.
>

 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      25th Sep 2003
Hello Mark,

Thanks for your reply.

You could contact Microsoft Prodoct Support Service for the date format of
North Africa. The link is:
http://support.microsoft.com/common/...fh;en-us;cntac
tms

You need to use free support incidents included in MSDN subscription to
submit a support request.

For the issue, I think you could build the logic in the aspx page. If the
request needs the specific format of date string, we could use
System.DateTime to parse string to a DateTime object first and then use its
ToString to convert the value of this instance to its equivalent string
representation.

Hope that helps.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Mark Finkel" <(E-Mail Removed)>
!Sender: "Mark Finkel" <(E-Mail Removed)>
!References: <bfdb01c381df$d1955220$(E-Mail Removed)>
<BnT3I#(E-Mail Removed)>
!Subject: RE: CultureInfo and South African dates
!Date: Wed, 24 Sep 2003 04:32:37 -0700
!Lines: 77
!Message-ID: <0d9701c3828f$8e248c80$(E-Mail Removed)>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOCj44iA+vQvm17QNSKbHKhsxgHYw==
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:54592
!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Customizing the format does not help.
!
!My asp.Net application gets the UserLanguage from Request,
!then uses that to set the Culture for the thread. Since
!the MS date format for South Africa is wrong, it displays
!dates wrong.
!
!Is there anyway to retrieve the customized date from the
!browser and somehow have the asp.NET application use that
!format?
!
!
!>-----Original Message-----
!>Hello Mark,
!>
!>Thanks for posting in the group.
!>
!>Based on my experience, the format of one cultureinfo is
!determined by the
!>setting in the control panel. So we could open Control
!panel->Regional
!>Setting and then change the format setting to English
!(South Africa). We
!>could see that the short date format is yyyy/mm/dd.
!>
!>I suggest you use the "customize" button to change the
!setting of it and
!>then test it on your side.
!>
!>Does that answer your question?
!>
!>Best regards,
!>Yanhong Huang
!>Microsoft Online Partner Support
!>
!>Get Secure! - www.microsoft.com/security
!>This posting is provided "AS IS" with no warranties, and
!confers no rights.
!>
!>--------------------
!>!Content-Class: urn:content-classes:message
!>!From: "Mark Finkel" <(E-Mail Removed)>
!>!Sender: "Mark Finkel" <(E-Mail Removed)>
!>!Subject: CultureInfo and South African dates
!>!Date: Tue, 23 Sep 2003 07:34:39 -0700
!>!Lines: 10
!>!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
!>!MIME-Version: 1.0
!>!Content-Type: text/plain;
!>! charset="iso-8859-1"
!>!Content-Transfer-Encoding: 7bit
!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!>!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
!>!Newsgroups: microsoft.public.dotnet.framework
!>!Path: cpmsftngxa06.phx.gbl
!>!Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework:54451
!>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!
!>!Using the CultureInfo and setting it to en-ZA (South
!>!Africa) dates are formatted yyyy/mm/dd. But the actual
!>!usage in South Africa is dd/mm/yyyy.
!>!
!>!I can get the proper date format by using another
!country
!>!(e.g UK), but that returns the wrong currency.
!>!
!>!Does anyone know how to get correct dates and currency
!for
!>!South Africa?
!>!
!>!
!>
!>.
!>
!

 
Reply With Quote
 
Mark Finkel
Guest
Posts: n/a
 
      1st Oct 2003
Yanhong,

Thank you for your response. Unfortunately I do not
understand how your suggestion helps.

Does anyone know how to get the correct date format for
South Africa without specifically hard coding the format?
Using CultureInfo seems to work everywhere else.

Or does anyone know where to report this apparent bug?

Regards,
Mark

>-----Original Message-----
>Hello Mark,
>
>Thanks for your reply.
>
>You could contact Microsoft Prodoct Support Service for

the date format of
>North Africa. The link is:
>http://support.microsoft.com/common/international.aspx

rdpath=fh;en-us;cntac
>tms
>
>You need to use free support incidents included in MSDN

subscription to
>submit a support request.
>
>For the issue, I think you could build the logic in the

aspx page. If the
>request needs the specific format of date string, we

could use
>System.DateTime to parse string to a DateTime object

first and then use its
>ToString to convert the value of this instance to its

equivalent string
>representation.
>
>Hope that helps.
>
>Best regards,
>Yanhong Huang
>Microsoft Online Partner Support
>
>Get Secure! - www.microsoft.com/security
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>--------------------
>!Content-Class: urn:content-classes:message
>!From: "Mark Finkel" <(E-Mail Removed)>
>!Sender: "Mark Finkel" <(E-Mail Removed)>
>!References: <bfdb01c381df$d1955220$(E-Mail Removed)>
><BnT3I#(E-Mail Removed)>
>!Subject: RE: CultureInfo and South African dates
>!Date: Wed, 24 Sep 2003 04:32:37 -0700
>!Lines: 77
>!Message-ID: <0d9701c3828f$8e248c80$(E-Mail Removed)>
>!MIME-Version: 1.0
>!Content-Type: text/plain;
>! charset="iso-8859-1"
>!Content-Transfer-Encoding: 7bit
>!X-Newsreader: Microsoft CDO for Windows 2000
>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>!Thread-Index: AcOCj44iA+vQvm17QNSKbHKhsxgHYw==
>!Newsgroups: microsoft.public.dotnet.framework
>!Path: cpmsftngxa06.phx.gbl
>!Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework:54592
>!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
>!X-Tomcat-NG: microsoft.public.dotnet.framework
>!
>!Customizing the format does not help.
>!
>!My asp.Net application gets the UserLanguage from

Request,
>!then uses that to set the Culture for the thread. Since
>!the MS date format for South Africa is wrong, it

displays
>!dates wrong.
>!
>!Is there anyway to retrieve the customized date from the
>!browser and somehow have the asp.NET application use

that
>!format?
>!
>!
>!>-----Original Message-----
>!>Hello Mark,
>!>
>!>Thanks for posting in the group.
>!>
>!>Based on my experience, the format of one cultureinfo

is
>!determined by the
>!>setting in the control panel. So we could open Control
>!panel->Regional
>!>Setting and then change the format setting to English
>!(South Africa). We
>!>could see that the short date format is yyyy/mm/dd.
>!>
>!>I suggest you use the "customize" button to change the
>!setting of it and
>!>then test it on your side.
>!>
>!>Does that answer your question?
>!>
>!>Best regards,
>!>Yanhong Huang
>!>Microsoft Online Partner Support
>!>
>!>Get Secure! - www.microsoft.com/security
>!>This posting is provided "AS IS" with no warranties,

and
>!confers no rights.
>!>
>!>--------------------
>!>!Content-Class: urn:content-classes:message
>!>!From: "Mark Finkel" <(E-Mail Removed)>
>!>!Sender: "Mark Finkel" <(E-Mail Removed)>
>!>!Subject: CultureInfo and South African dates
>!>!Date: Tue, 23 Sep 2003 07:34:39 -0700
>!>!Lines: 10
>!>!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
>!>!MIME-Version: 1.0
>!>!Content-Type: text/plain;
>!>! charset="iso-8859-1"
>!>!Content-Transfer-Encoding: 7bit
>!>!X-Newsreader: Microsoft CDO for Windows 2000
>!>!X-MimeOLE: Produced By Microsoft MimeOLE

V5.50.4910.0300
>!>!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
>!>!Newsgroups: microsoft.public.dotnet.framework
>!>!Path: cpmsftngxa06.phx.gbl
>!>!Xref: cpmsftngxa06.phx.gbl
>!microsoft.public.dotnet.framework:54451
>!>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
>!>!X-Tomcat-NG: microsoft.public.dotnet.framework
>!>!
>!>!Using the CultureInfo and setting it to en-ZA (South
>!>!Africa) dates are formatted yyyy/mm/dd. But the actual
>!>!usage in South Africa is dd/mm/yyyy.
>!>!
>!>!I can get the proper date format by using another
>!country
>!>!(e.g UK), but that returns the wrong currency.
>!>!
>!>!Does anyone know how to get correct dates and currency
>!for
>!>!South Africa?
>!>!
>!>!
>!>
>!>.
>!>
>!
>
>.
>

 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      2nd Oct 2003
Hello Mark,

Thanks for the response.

You could refer to http://msdn.microsoft.com/subscriptions/faq/default.asp.
There is a question on "how to report a bug".

My suggestion here is to hard code the format as the workaround for the
program. Please let post here if you have any more concerns.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Mark Finkel" <(E-Mail Removed)>
!Sender: "Mark Finkel" <(E-Mail Removed)>
!References: <bfdb01c381df$d1955220$(E-Mail Removed)>
<BnT3I#(E-Mail Removed)>
<0d9701c3828f$8e248c80$(E-Mail Removed)>
<(E-Mail Removed)>
!Subject: RE: CultureInfo and South African dates
!Date: Wed, 1 Oct 2003 05:10:43 -0700
!Lines: 161
!Message-ID: <1d9c01c38815$0969b840$(E-Mail Removed)>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcOIFQlpUQHxAB8bTG2YopcqWU/huw==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.dotnet.framework
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework:55160
!NNTP-Posting-Host: TK2MSFTNGXA06 10.40.1.53
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!Yanhong,
!
!Thank you for your response. Unfortunately I do not
!understand how your suggestion helps.
!
!Does anyone know how to get the correct date format for
!South Africa without specifically hard coding the format?
!Using CultureInfo seems to work everywhere else.
!
!Or does anyone know where to report this apparent bug?
!
!Regards,
!Mark
!
!>-----Original Message-----
!>Hello Mark,
!>
!>Thanks for your reply.
!>
!>You could contact Microsoft Prodoct Support Service for
!the date format of
!>North Africa. The link is:
!>http://support.microsoft.com/common/international.aspx?
!rdpath=fh;en-us;cntac
!>tms
!>
!>You need to use free support incidents included in MSDN
!subscription to
!>submit a support request.
!>
!>For the issue, I think you could build the logic in the
!aspx page. If the
!>request needs the specific format of date string, we
!could use
!>System.DateTime to parse string to a DateTime object
!first and then use its
!>ToString to convert the value of this instance to its
!equivalent string
!>representation.
!>
!>Hope that helps.
!>
!>Best regards,
!>Yanhong Huang
!>Microsoft Online Partner Support
!>
!>Get Secure! - www.microsoft.com/security
!>This posting is provided "AS IS" with no warranties, and
!confers no rights.
!>
!>--------------------
!>!Content-Class: urn:content-classes:message
!>!From: "Mark Finkel" <(E-Mail Removed)>
!>!Sender: "Mark Finkel" <(E-Mail Removed)>
!>!References: <bfdb01c381df$d1955220$(E-Mail Removed)>
!><BnT3I#(E-Mail Removed)>
!>!Subject: RE: CultureInfo and South African dates
!>!Date: Wed, 24 Sep 2003 04:32:37 -0700
!>!Lines: 77
!>!Message-ID: <0d9701c3828f$8e248c80$(E-Mail Removed)>
!>!MIME-Version: 1.0
!>!Content-Type: text/plain;
!>! charset="iso-8859-1"
!>!Content-Transfer-Encoding: 7bit
!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!>!Thread-Index: AcOCj44iA+vQvm17QNSKbHKhsxgHYw==
!>!Newsgroups: microsoft.public.dotnet.framework
!>!Path: cpmsftngxa06.phx.gbl
!>!Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework:54592
!>!NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!
!>!Customizing the format does not help.
!>!
!>!My asp.Net application gets the UserLanguage from
!Request,
!>!then uses that to set the Culture for the thread. Since
!>!the MS date format for South Africa is wrong, it
!displays
!>!dates wrong.
!>!
!>!Is there anyway to retrieve the customized date from the
!>!browser and somehow have the asp.NET application use
!that
!>!format?
!>!
!>!
!>!>-----Original Message-----
!>!>Hello Mark,
!>!>
!>!>Thanks for posting in the group.
!>!>
!>!>Based on my experience, the format of one cultureinfo
!is
!>!determined by the
!>!>setting in the control panel. So we could open Control
!>!panel->Regional
!>!>Setting and then change the format setting to English
!>!(South Africa). We
!>!>could see that the short date format is yyyy/mm/dd.
!>!>
!>!>I suggest you use the "customize" button to change the
!>!setting of it and
!>!>then test it on your side.
!>!>
!>!>Does that answer your question?
!>!>
!>!>Best regards,
!>!>Yanhong Huang
!>!>Microsoft Online Partner Support
!>!>
!>!>Get Secure! - www.microsoft.com/security
!>!>This posting is provided "AS IS" with no warranties,
!and
!>!confers no rights.
!>!>
!>!>--------------------
!>!>!Content-Class: urn:content-classes:message
!>!>!From: "Mark Finkel" <(E-Mail Removed)>
!>!>!Sender: "Mark Finkel" <(E-Mail Removed)>
!>!>!Subject: CultureInfo and South African dates
!>!>!Date: Tue, 23 Sep 2003 07:34:39 -0700
!>!>!Lines: 10
!>!>!Message-ID: <bfdb01c381df$d1955220$(E-Mail Removed)>
!>!>!MIME-Version: 1.0
!>!>!Content-Type: text/plain;
!>!>! charset="iso-8859-1"
!>!>!Content-Transfer-Encoding: 7bit
!>!>!X-Newsreader: Microsoft CDO for Windows 2000
!>!>!X-MimeOLE: Produced By Microsoft MimeOLE
!V5.50.4910.0300
!>!>!Thread-Index: AcOB39GVGGNKIMqxRIu/zVgcixqdPw==
!>!>!Newsgroups: microsoft.public.dotnet.framework
!>!>!Path: cpmsftngxa06.phx.gbl
!>!>!Xref: cpmsftngxa06.phx.gbl
!>!microsoft.public.dotnet.framework:54451
!>!>!NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
!>!>!X-Tomcat-NG: microsoft.public.dotnet.framework
!>!>!
!>!>!Using the CultureInfo and setting it to en-ZA (South
!>!>!Africa) dates are formatted yyyy/mm/dd. But the actual
!>!>!usage in South Africa is dd/mm/yyyy.
!>!>!
!>!>!I can get the proper date format by using another
!>!country
!>!>!(e.g UK), but that returns the wrong currency.
!>!>!
!>!>!Does anyone know how to get correct dates and currency
!>!for
!>!>!South Africa?
!>!>!
!>!>!
!>!>
!>!>.
!>!>
!>!
!>
!>.
!>
!

 
Reply With Quote
 
Bob Uva
Guest
Posts: n/a
 
      8th Oct 2003
Mark,

CultureInfo (in System.Globalization) has some constructors that take
two parameters, the second of which is a boolean flag indicating
whether or not any customizations set up via the Control Panel's
Regions & Languages applet should be allowed. So if you have changed
the date format for South African dates through the Control Panel, you
can then, in your C# code, instantiate a CultureInfo object, passing
true as the second constructor argument. This will essentially "allow"
your customization to be accepted and used in your program. This is
not so obvious from reading about CultureInfo but some experimentation
is well worthwhile!

Hope this helps,
Bob Uva

> !Does anyone know how to get the correct date format for
> !South Africa without specifically hard coding the format?
> !Using CultureInfo seems to work everywhere else.
> !
> !Or does anyone know where to report this apparent bug?
> !
> !Regards,
> !Mark

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Buy false USA,Australian,Canadian,French,UK,Mexican,South African passports niki12 Microsoft ADO .NET 0 3rd Nov 2010 03:21 PM
South African Braai (BBQ) Etiquitte Madxgraphics General Discussion 3 13th Nov 2008 09:07 AM
South African Developers Bleskop Microsoft C# .NET 0 17th Sep 2003 08:40 PM
South African Developers Bleskop Microsoft VB .NET 0 17th Sep 2003 08:38 PM
South African developers Bleskop Microsoft Dot NET 0 17th Sep 2003 08:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 AM.