我现在正试图将格式转换为日期yyyy/MM/dd.检查是否给出了有效日期.
yyyy/MM/dd
if(!DateTime.TryParse(textBoxDatumVanStorting.Text, out Test2))
是我现在使用的,但它总是给我一个错误的约会.
我已经注意使用了DateTime.TryParseExact.但似乎不能让这个工作.
DateTime.TryParseExact
c# datetime tryparse
c# ×1
datetime ×1
tryparse ×1