encode time using FW_DATE_FORMAT