formating datetime in input