add regex for checking datetime