Code

Rename string_date to mkdate and add incorporate common checks