format_time function

unify date format