accept a string variable as a timefmt