Skip to content

Date Shift Variable

The Date Shift Variable algorithm returns a random date within the same month-year as the input date. Dates will not mask to the original input date. This algorithm may produce collisions. The out-of-the-box instance of this algorithm is called DateShiftVariable.

For example:

  • "2019-02-05 10:00:00" → "2019-02-13 10:00:00"
  • "2019-02-12 15:30:00" → "2019-02-13 15:30:00"
  • "2019-02-27 00:45:30" → "2019-02-17 00:45:30"
  • "2020-02-27 00:00:00" → "2020-02-22 00:00:00"

Note

This algorithm may generate non-conformant data events.