How to enter a future date in a specific format

A user requested: I want to insert date + 2 months in a field in specific format (MM-DD-YYYY).

Since that format isn’t one of the 50+ date and time formats that are built into SenseTalk, you’ll have to use the formattedTime() function to do the formatting.

Also, to add 2 months you’ll need one of the latest versions of Eggplant Functional, since the ability to do date calculations using calendar months, quarters, and years was just recently added in version 18.2.

put formattedTime( “%m-%d-%Y”, today + 2 months) into myFormattedDate
TypeText myFormattedDate