B2024-063-Invalid-Format-message-box-displays-when-rev-date-empty #397

Closed
plarsen wants to merge 2 commits from B2024-063-Invalid-Format-message-box-displays-when-rev-date-empty into Development

View File

@ -1206,6 +1206,9 @@ namespace VEPROMS
private bool validateDate(TextBox txtDate)
{
DateTime dDate;
if (!(txtDate.Text == ""))
{
if (DateTime.TryParse(txtDate.Text, out dDate))
{
return true;
@ -1219,6 +1222,11 @@ namespace VEPROMS
return false;
}
}
return true;
}
private void txbRevDate_Enter(object sender, EventArgs e)
{