文档介绍:--=();取当前年月日时分秒currentTime=;取当前年int年=;取当前月int月=;取当前日int日=;取当前时int时=;取当前分int分=;取当前秒int秒=;取当前毫秒int毫秒=;(变量可用中文)取中文日期显示——年月日时分stringstrY=("f");//不显示秒取中文日期显示_年月stringstrYM=("y");取中文日期显示_月日stringstrMD=("m");取当前年月日,格式为:2003-9-23stringstrYMD=("d");取当前时分,格式为:14:24stringstrT=("t");();//();//只显示日期xxxx年xx月xx日,();//只显示日期xxxx-xx-xx一个是短日期//();//(-1).ToShortDateString();//(1).ToShortDateString();//本周(注意这里的每一周是从周日始至周六止)(((0-()))).ToShortDateString();(((6-()))).ToShortDateString();//上周,(((0-()))-7).ToShortDateString();(((6-()))-7).ToShortDateString();//(((0-(DateTime