我收到的日期和時間從CSV文件C# - 正則表達式驗證日期和時間
The received Date format is YYYYMMDD (string) (there is no ":" ,"-","/" to
separate Year month and date).
The received time format is HH:MM (24 Hour clock).
我對這兩個進行驗證,以便(例如)(一)000011990可能無效日期(二)77: 90可能是 因時間而失效。
的問題是,
正則表達式是合適的人選這樣做(或)是否有任何其他的方式來實現 呢?
A *三*年數?錯字還是故意的? – Joey 2010-04-11 14:18:30
對不起四位數年份 – user274364 2010-04-11 14:25:26