![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#基本数据
hcqi2004
这个作者很懒,什么都没留下…
展开
-
C#中Split用法
1、用字符串分隔: using System.Text.RegularExpressions; string str="aaajsbbbjsccc"; string[] sArray=Regex.Split(str,"js",RegexOptions.IgnoreCase); foreach (string i in sArray) Response.Write(i.ToString()转载 2011-12-28 10:39:16 · 358 阅读 · 0 评论 -
C#获取当前系统时间
--DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 取当前年月日时分秒 currentTime=System.DateTime.Now; 取当前年 int 年=currentTime.Year; 取当前月 int 月=currentTime.Month; 取当前日转载 2011-12-28 17:16:58 · 552 阅读 · 0 评论