C# How to Validate a DateTime in C#? - 03.01.21 - ErcanOPAK DateTime myDate; if(DateTime.TryParse(txtBirthDate.Text, out myDate)) { //Valid Date } else { //Invalid Date } Related posts:How to split string and get first (or n-th) value onlyASPxGridView - Disable CheckBox based on condition in GridViewCommandColumnFunction with variable number of arguments in C#What is the purpose of nameof in C#? Post Views: 23