resolve date format on forms