set date format for registration date