摘要: --DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 取当前年月日时分秒 currentTime=System.DateTime.Now; 取当前年 int 年=currentTime.Year; 取当前月 int 月=currentTime.Month; 取当前日 int 日=current... 阅读全文
posted @ 2013-02-15 15:24 ccczqh 阅读(408) 评论(0) 推荐(0)
摘要: formatCode 是可选的格式化代码字符串。(详细内容请搜索“格式化字符串”查看) 必须用“{”和“}”将格式与其他字符分开。如果恰好在格式中也要使用大括号,可以用连续的两个大括号表示一个大括号,即: “{{”或者“}}”。 常用格式举例: (1) int i=12345; this.textBox1.Text=i.ToString(); //结果 12345... 阅读全文
posted @ 2013-02-15 15:06 ccczqh 阅读(181) 评论(0) 推荐(0)