摘要: 摘自:http://www.oschina.net/code/snippet_1242747_23573#region 常用数据验证的封装,数字字符的验证 /// /// 常用数据验证的封装,数字字符的验证 /// /// 需要验证的数值【字符串,或者数字】 /// 类型为哪一个验证 /// 如果验证成功则返回True,否则返回false public static bool IsMatch(string inputVal, int type) { switch (type)... 阅读全文
posted @ 2013-10-15 17:53 nygfcn 阅读(312) 评论(0) 推荐(0)
摘要: 摘自:http://blog.csdn.net/xwdpepsi/article/details/6362124DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816Label4.Text = dt.ToLocalTime().ToString();// 阅读全文
posted @ 2013-10-15 15:14 nygfcn 阅读(1604) 评论(0) 推荐(0)