string t = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");string SQL = string.Foramt("insert into 表(..., 时间字段...) values(...,'{0}'...)", t); //执行SQL