Thursday, March 22, 2012

Short Date Format Bug!

I am sure I modified the Regional and Language Option's Customize Short Date
Format. When I run my ASP.NET applications, No one function and properties
can return the customize short date format.

I only need to obtain the short date format string (ONLY the pattern string
"yyyy/MM/dd") to display only. Not need to use "ToShortDateString()". It
seems .NET have bug!!..NET retieves time format based on culture specified for the executing
thread.

You may use globalization tag in web.config file or use Page.Culture to
specify a certain culture for the executing thread.

~Aru
Then, I want set it on web.config Globalization Tag.

As an interialization city Hong Kong, our all are using dd/MM/yyyy as date
format to display date value, but also using format yyyy/MM/dd as input date
pattern. How should I to set on web.config?

<aruanavekar@.gmail.com> wrote in message
news:1145590652.574051.160550@.i40g2000cwc.googlegr oups.com...
> .NET retieves time format based on culture specified for the executing
> thread.
> You may use globalization tag in web.config file or use Page.Culture to
> specify a certain culture for the executing thread.
> ~Aru

0 comments:

Post a Comment