1.DateTime now = DateTime.Now;
String str = now.ToString("hh-mm-ss");2.DateTime dt1 = new DateTime(1234567);
DateTime dt2 = new DateTime(1234567);bool great = dt1 > dt2;
bool less = dt1 < dt2;
bool equal = dt1 == dt2;
跟数字的运算符类似。
String str = now.ToString("hh-mm-ss");2.DateTime dt1 = new DateTime(1234567);
DateTime dt2 = new DateTime(1234567);bool great = dt1 > dt2;
bool less = dt1 < dt2;
bool equal = dt1 == dt2;
跟数字的运算符类似。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货