WebApplication - CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern--Not Working!!

  • Thread starter Muralidhar Chennoju
  • Start date
M

Muralidhar Chennoju

Hi All

How to get the Current DateFormat based on the regional settings.
The following statment is giving right data when it is windows based
application, but when I try the same in Web application I'm not getting the
expected result.

It is only showing the this format :"M/d/yyyy".

"CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern"

lblDate.Text =CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern;

Any help on this highly appreciated.

Regards
Murali
 

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