Example #1
0
 public static System.Boolean IsValid(System.DateTime AValue)
 {
     return(DateUtils.IsValid(Convert.ToString(AValue)));
 }
Example #2
0
 public static System.String ToStringMesAno(System.DateTime AValue)
 {
     if (DateUtils.IsMinValue(AValue) || AValue.Year < 1760)
     {
         return(System.String.Empty);
     }
     else
     {
         String data = "";
         if (AValue.Month == 1)
         {
             data = "Janeiro ";
         }
         else if (AValue.Month == 2)
         {
             data = "Fevereiro ";
         }
         else if (AValue.Month == 3)
         {
             data = "Março ";
         }
         else if (AValue.Month == 4)
         {
             data = "Abril ";
         }
         else if (AValue.Month == 5)
         {
             data = "Maio ";
         }
         else if (AValue.Month == 6)
         {
             data = "Junho ";
         }
         else if (AValue.Month == 7)
         {
             data = "Julho ";
         }
         else if (AValue.Month == 8)
         {
             data = "Agosto ";
         }
         else if (AValue.Month == 9)
         {
             data = "Setembro ";
         }
         else if (AValue.Month == 10)
         {
             data = "Outubro ";
         }
         else if (AValue.Month == 11)
         {
             data = "Novembro ";
         }
         else if (AValue.Month == 12)
         {
             data = "Dezembro ";
         }
         data = data + AValue.Year;
         return(data);
     }
 }