Automation of hrm_credential.end_date based on deployment setting

Normally we use format_date.replace not string.replace(format_date