Adjust (Dynamic Date)

Created by Docs Made Easy, Modified on Fri, 11 Jul at 10:45 AM by Docs Made Easy

Available In: Docs Made Easy Basic and Pro



Parameter Value : ADJUST

Parameter Requirement : None


Parameter Description : The Adjust (Dynamic Date) parameter in Docs Made Easy enables you to dynamically manipulate date or datetime fields during document generation. By prefixing the merge field with ADJUST, you can add or subtract time units (years, months, days, hours, minutes, or seconds) from any Salesforce date field—without altering the original value in Salesforce.


This functionality is ideal for use cases such as setting a due date, follow-up reminder, expiration date, or contract renewal period relative to a reference date like Opportunity.CloseDate, CreatedDate, or Today.


Example -

ORIGNAL VALUE

SYNTAX

OUTPUT

2025-03-03T06:57:49.000

{{ADJUST:Opportunity.CreatedDate:1:1:1:1:1:1}}

2026-04-04T07:58:50.000

2025-03-03T06:57:49.000

{{ADJUST:Opportunity.CreatedDate:0:0:0:0:0:0}}

2025-03-03T06:57:49.000

2025-03-03T06:57:49.000

{{ADJUST:Opportunity.CreatedDate:-1:-1:-1:-1:-1:-1}}

2024-02-02T05:56:48.000



Note:

The Adjust (Dynamic Date) syntax follows this structure:

{{ADJUST: MyDateField:Year:Month:Day:Hour:Minute:Second}}


Each time component accepts a positive, negative, or zero integer:


Use + to add (e.g., +30 for 30 days ahead)

Use - to subtract (e.g., -7 for 7 days earlier)

Use 0 to leave that component unchanged



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article