public string mysqldate(DateTime dat) { return dat.Year + "-" + dat.Month + "-" + dat.Day + " " + dat.Hour + ":" + dat.Minute + ":" + dat.Second; }