1.0 - parseDate - Vantage Customer Experience

Vantage Customer Experience User Guide

prodname
Vantage Customer Experience
vrm_release
1.0
category
User Guide
featnum
B035-3800-099K

Takes a formatted date string and converts it to milliseconds since 1970/1/1 00:00:00 GMT.

parseDate(get("Customer.demographics.dob"))

The following example tests if a customer’s date of birth is less than 30 days from the current time.

time(now) - time(parseDate(get("Customer.demographics.dob"))) < 86400000 * 30

The previous formula uses 86400000 because that is the number of milliseconds in one day. Alternatively, you can include the math that calculates the number of milliseconds in one day, as shown in the following example.

time(now) - time(parseDate(get("Customer.demographics.dob"))) < 1000 * 60 * 60 * 24 * 30