In short client gives me a files and sometimes the DOB variable has a real date in it and other times it has text it in such as random or AdultMale.
What I would like to do is something simple like
If DOB is a date
// use this date
Else
// call handler to generate a date
End if
This if statement doesnt work since “a date” isnt valid but is there a simple way to do this without using some logic around contains only these characters or something. Trying to make it generic as possible