2008年6月30日

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

摘要: 1、DateTime 数字型 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 日=c... 阅读全文

posted @ 2008-06-30 17:29 liuhaitao 阅读(156) 评论(0) 推荐(0) 编辑

C#中DateTime

摘要: [转]http://blog.sina.com.cn/s/blog_4cbec81a0100091o.html 这几天因为C#的DateTime困惑了一下,也顺便研究了一下DateTime对象,原来表现这么丰富! 我在这里主要介绍datetime类型在tostring()format的格式设置,然后有兴趣的还可以看看datetim类型是如何对其本身做操作符重载的,Msdn上有介绍,我就不累赘了... 阅读全文

posted @ 2008-06-30 17:26 liuhaitao 阅读(594) 评论(0) 推荐(0) 编辑

导航