improved date_format, index_format