Along with your “string is digit” check, you could incorporate a valid date check with the “catch” and “clock scan” command to determine if you have a real date; i.e.
if {[catch {clock scan $DOB_n}]} {
echo “If I’m here, the date had an error”
}
Since “catch” is successful (return code 1) when it encounters an error, this would indicate that the “clock scan” command couldn’t determine a date. You can also use the “clock scan” command to normalize the date to a clock value for easier calculation along with the “getclock” command.