need to convert the time format to the right syntax