摘要: private void button1_Click(object sender, EventArgs e) { string s = textBox1.Text.ToString(); bool b = ValidateDataTime(s); string rs = ""; if (b) { rs = "true"; } else { rs = "false"; } MessageBox.Show(rs); } //验证方法-格式为:YYYY-MM-DD public static bool ValidateDataTime(st 阅读全文
posted @ 2013-02-28 11:00 侠梦千年 阅读(867) 评论(0) 推荐(0)