Ejemplo n.º 1
0
 public static string GetDaysFormat(string dateFormat)
 {
     if (dateFormat == null)
     {
         throw new ArgumentNullException("dateFormat");
     }
     return(DateFormatParser.GetPart(dateFormat, DateFormatPart.DaysFormat));
 }
Ejemplo n.º 2
0
 public static string GetHoursFormat(string timeFormat)
 {
     if (timeFormat == null)
     {
         throw new ArgumentNullException("timeFormat");
     }
     return(DateFormatParser.GetPart(timeFormat, DateFormatPart.HoursFormat));
 }