473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

DATETIMEPATTERN

Hi all
How can i get the "Short Date Format" from regional and language
options
Like "MM/dd/yyyy"
how can get this type of format based regional settings;
I wnat to show this format in web application.

Iam using this code
Label1.Text = CultureInfo.CurrentCulture.DateTimeFormat.ShortDat ePattern;
Iam getting this output ="M/d/yyyy";

When ever chage the regional optional settings It's not changing when i was
used this code.
Regards
Venu


Nov 16 '05 #1
2 1297
hi
may be this can solve your problem
http://www.codeproject.com/dotnet/datetimeformat.asp
regards
ansil

"Karunakararao" wrote:
Hi all
How can i get the "Short Date Format" from regional and language
options
Like "MM/dd/yyyy"
how can get this type of format based regional settings;
I wnat to show this format in web application.

Iam using this code
Label1.Text = CultureInfo.CurrentCulture.DateTimeFormat.ShortDat ePattern;
Iam getting this output ="M/d/yyyy";

When ever chage the regional optional settings It's not changing when i was
used this code.
Regards
Venu


Nov 16 '05 #2
Here Iam using in ASP.NET Web application
Here it is not taking the these settings
I want Format of like "MM/dd/yyyy"
Regards
Venu

"Ansil MCAD" <An*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
hi
may be this can solve your problem
http://www.codeproject.com/dotnet/datetimeformat.asp
regards
ansil

"Karunakararao" wrote:
Hi all
How can i get the "Short Date Format" from regional and language
options
Like "MM/dd/yyyy"
how can get this type of format based regional settings;
I wnat to show this format in web application.

Iam using this code
Label1.Text = CultureInfo.CurrentCulture.DateTimeFormat.ShortDat ePattern;
Iam getting this output ="M/d/yyyy";

When ever chage the regional optional settings It's not changing when i
was
used this code.
Regards
Venu


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.