- 5
- 0
- 约4.84千字
- 约 5页
- 2016-08-20 发布于安徽
- 举报
C#.Net函数与方法集.doc
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 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Second; 1.8 取当前毫秒 int 毫秒=currentTime.Millisecond; (变量可用中文) 1.9 取中文日期显示——年月日时分 string strY=currentTime.ToString(f); //不显示秒 1.10 取中文日期显示_年月 string strYM=currentTime.ToString(y); 1.11 取中文日期显示_月日 string strMD=currentTime.ToString(m); 1.12 取中文年月日 string s
您可能关注的文档
- 6_任务驱动教学模式初探(尹娟).doc
- 6、人力资源部程序--请假(修订).doc
- 6与7的认识教学设计.doc
- 6周严于律己诚信待人(高段)ppt.ppt
- 6填料塔吸收传质系数测定.doc
- 6大方法升级免疫力.docx
- 6种随处可见天然抗癌食物.docx
- 6计算机安全_ciper-5.ppt
- 7.1柴油机燃料供给系统的分类和发展杜常清发动机原理A,内燃机燃料供给和调节,武汉理工大学,车用动力系.pptx
- 7.1高世界是普遍联系.ppt
- 2026高考英语 形容词 复习课件.pdf
- 2026高考英语 阅读理解——研究报告类说明文 复习课件.pdf
- (人教2024版)英语八年级上册Unit 3.5 Section B Vocabulary in use.pdf
- (人教2024版)英语八年级上册Unit 1.7 Section B (4a-4c Project).pdf
- 2026高考英语 阅读理解词汇 复习课件.pdf
- 2026高考英语 动词时态——一般时 复习课件.pdf
- 2026年广东省春季高考语文考纲解读课件.pdf
- 八年级上册美术第7课《三位中国美术家》课件.pdf
- 人美版一年级下册《第1课 春天在哪里》课件.pdf
- (人教2024版)英语八年级上册Unit 1.5 Section B(2a-2c).pdf
原创力文档

文档评论(0)