HASHDOB masking function
search cancel

HASHDOB masking function

book

Article ID: 261755

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

We are using Fast Data Masker to obfuscate dates of birth. In our testing, all the dates were masked as expected except for two dates that are in the far past, and far future:

  • 1800-01-01 (far past)
  • 2049-06-17 (far in the future)

Why did these two date not get masked?

Environment

Release : FDM 4.10.77.0

Resolution

In order to mask dates that are in the distant past, you will need to set the HASHDOBEARLIESTDATE option in the format of YYYY-MM-DD.

For example: HASHDOBEARLIESTDATE=1800-01-01

OR

HASHDOBEARLIESTDATE=1799-12-31 

to avoid any time zone difference.

As for dates that are in the future, since this date is higher than the current date, it is considered an invalid date by the HASHDOB function. Therefore, the date is not masked.