汇总c#.net常用函数和方法集[1]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

1DateTime 数字型
System.DateTime currentTime=new System.DateTime();
1.1
取当前年月日时分秒
currentTime=System.DateTime.Now;
1.2
取当前年
int
=currentTime.Year;
1.3
取当前月
int
=currentTime.Month;
1.4
取当前日
int
=currentTime.Day;
1.5
取当前时
int
=currentTime.Hour;
1.6
取当前分
int
=currentTime.Minute;
1.7
取当前秒
int
=currentTime.Second;
1.8
取当前毫秒
int
毫秒=currentTime.Millisecond;

本文关键:汇总c#.net常用函数和方法集
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top