Always more to learn

I am reviewing some samples for an
upcoming reference book. The samples are for classes I know very well. I designed or helped design most of
them. But I always have something
to learn… Here is one that I thought was pretty cool… prints out the short day
names.. Culturelly relevant and all!"urn:schemas-microsoft-com:office:office" />

using
System;

using
System.Globalization;

namespace
Samples

{

      public class
DateTimeFormatInfoAbbreviatedDayNames

     
{

           
public static void
"urn:schemas-microsoft-com:office:smarttags" />Main()

           
{

                 
DateTimeFormatInfo f =
CultureInfo.CurrentCulture.DateTimeFormat;

                 
foreach (string s in
f.AbbreviatedDayNames)

                 
{

                       
Console.WriteLine (s);

                 
}

           
}

     
}

}

output:

Sun

Mon

Tue

Wed

Thu

Fri

Sat