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()); }
public static DateTime GetSystemDate() { try { return(Convert.ToDateTime(TextUtilss.getTable("spGetDateSystem", null, "Table").Rows[0][0])); } catch (Exception ex) { throw new Exception(ex.Message); } }
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); } }