ASP / VB
I am displaying the following item from my database in the page:
<%= DoDateTime((EmploymentHist.Fields.Item("EmpStart").Value), 2, 9225) %>
This works fine if the data entered is a full date (mm/dd/yyyy), but sometimes the user enters just the year, if they do the formatting of the data doesnt work and the data displayed is incorrect, in the scenario that the data entered is not a valid full date (month, day, year), then I want to display:
So its basically a condition, how can I check that the data entered is a full date and display first item, otherwise second item.
I am using ASP/VB