let it be
行到水穷处 坐看云起时
摘要: 1、比较时间大小 string st1="12:13"; string st2="14:14"; DateTime dt1=Convert.ToDateTime(st1); DateTime dt2=Convert.ToDateTime(st2); DateTime dt3=DateTime.Now; if(DateTime.Compare(dt1,dt2)>0) msg.Text=st1+">"... 阅读全文
posted @ 2008-09-01 17:07 流浪浪 阅读(711) 评论(1) 推荐(0) 编辑
摘要: DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1 取当前年月日时分秒 currentTime=System.DateTime.Now; 2 取当前年 int 年=currentTime.Year; 3 取当前月 int 月=currentTime.Month; 4 取当前日 int 日=currentTime.Day... 阅读全文
posted @ 2008-09-01 17:05 流浪浪 阅读(1857) 评论(0) 推荐(0) 编辑