会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
海军编程小天地
人若无名,便可专心练剑;物若无名,便可随意取舍……
博客园
首页
新随笔
联系
订阅
管理
2010年6月18日
C#获取当前时间函数
摘要: 1、DateTime 数字型Code:System.DateTime currentTime=new System.DateTime();1.1 取当前年月日时分秒Code:currentTime=System.DateTime.Now;1.2 取当前年Code:int 年=currentTime.Year;1.3 取当前月Code:int 月=currentTime.Month;1.4 取当前日...
阅读全文
posted @ 2010-06-18 09:01 海军
阅读(2779)
评论(0)
推荐(0)
编辑
公告