ASP.NET网络编程中经常用到的27个函数集
1、DateTime 数字型 8s,EN$r0ME@HNE_xw"[z
以下是引用片段: Q f8I8k#|M
1_jO-E(Gw
']nY(T,LU1_s&k
System.DateTime currentTime=new System.DateTime(); Y.J.cDIrNz
(X"c*ul,I(U#CJ
1.1 取当前年月日时分秒 currentTime=System.DateTime.Now;
1.2 取当前年 int 年=currentTime.Year; !`4`X!z5j8Qjz|P7D
1.3 取当前月 int 月=currentTime.Month;
1.4 取当前日 int 日=currentTime.Day; -Q(u6H&my \?
1.5 取当前时 int 时=currentTime.Hour; XE&|}'Vx3v.c
1.6 取当前分 int 分=currentTime.Minute; :U)qp-A/S*S!T2k
1.7 取当前秒 int 秒=currentTime.Second; z[oE5jxm
1.8 取当前毫秒 int 毫秒=currentTime.Millisecond;
O'{Kw7ND }3RU
(变量可用中文) ?(T2uMU
&@Z s3F$[*^P\
2、Int32.Parse(变量) Int32.Parse("常量") O7Sd&|4E&D