Example #1
0
        static public string generateCode()
        {
            DateTime Date = TextUtilss.GetSystemDate();

            return(Date.Year.ToString() + Date.Month.ToString() + Date.Day.ToString() + Date.Hour.ToString()
                   + Date.Minute.ToString() + Date.Second.ToString() + Date.Millisecond.ToString());
        }
Example #2
0
 public static DateTime GetSystemDate()
 {
     try
     {
         return(Convert.ToDateTime(TextUtilss.getTable("spGetDateSystem", null, "Table").Rows[0][0]));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Example #3
0
 public static DateTime GetBusinessDate()
 {
     try
     {
         return(Convert.ToDateTime(TextUtilss.getTable("spGetDate", null, "Table").Rows[0][0].ToString()));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }