How do I format a DateTime in Spanish?

  • Thread starter Thread starter Robert Dobson
  • Start date Start date
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.
 
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
 
Back
Top