How do I format a DateTime in Spanish?

R

Robert Dobson

It seems it's going to require some magic combination of
Globalization.DateTimeFormatInfo and the CultureInfo objects but I can't
figure out how the piece fits together. Please explain. Thanks.
 
G

Guest

DateTime dt = DateTime.Now
lblDateTime.Text = dt.ToString(new System.Globalization.CultureInfo("es-ES"))

Check MS Quickstart Tutorials
http://samples.gotdotnet.com/quickstart/aspplus/doc/cultureencoding.asp

and

http://msdn.microsoft.com/library/d...l/cpconformattingobjectsforspecificculture.as

HTH
Suresh


----- Robert Dobson wrote: ----

It seems it's going to require some magic combination o
Globalization.DateTimeFormatInfo and the CultureInfo objects but I can'
figure out how the piece fits together. Please explain. Thanks
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top