DateTime.TryParse
This I believe is faster and it means you dont have to use ugly try/catches 🙂
e.g
DateTime temp;
if(DateTime.TryParse(startDateTextBox.Text, out temp))
{
// Yay :)
}
else
{
// Aww.. :(
}
DateTime.TryParse
This I believe is faster and it means you dont have to use ugly try/catches 🙂
e.g
DateTime temp;
if(DateTime.TryParse(startDateTextBox.Text, out temp))
{
// Yay :)
}
else
{
// Aww.. :(
}