I have a JSL script that periodically pulls data from an Access database.
The access database contains a date column "Available Date" with a dd-Mon-YYYY (E.g., 12-APR-2018) format. What I am trying to do, is create a new column "Target Date" in JMP that adds x number of days to the date in "Available Date" for each row.
For example: In the image below, the Target date is equal to Available date + 4 days. I am trying to automatically calculate the Target date based on the Available date. The number of days is based on the "Time (Months)" column.

This is what I've tried so far, which obviously does not work. I think I need to convert the "Available Date" column to a numeric data type, then add the number of days & convert back to Character?
dt << New Column("Target Date", "Character", "Nominal");
dt << For Each Row(
IF (:"Time (Months)" <= 3, :"Target Date" = :"Available Date" + 4 ),
IF (:"Time (Months)" > 3, :"Target Date" = :"Available Date" + 7 )
);