• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
home/Knowledge Base/Template Designer(DCP)/DateTime Fields (Dynamics 365)

DateTime Fields (Dynamics 365)

1264 views 0 Updated on March 1, 2023

The DateTime option allows you to perform basic calculations with dates. You can add a certain amount of time to an existing date, or you can calculate the difference between two given dates. The following step-by-step description will show you how to insert a field of this type into your template.

Requirements: The DocumentsCorePack TemplateDesigner version 9.22 and DocumentsCorePack version 2017.174.

Step-by-step description
This description outlines how to add a DateTime field into a DocumentsCorePack (DCP) template in your Dynamics 365 by using the given insert options.

This feature can only be used within DCP templates, so please open an existing template or create a new one before using this feature. (Here is an article that explains how to create a new template).

Step 1: Open the “Insert Field” dialog
Open the Insert Field button and navigate to the Computed Items section ❶. Within this section, select the DateTime Field button ❷.

Select "Insert Field" > "Insert Computed Item" > "DateTime Field.

Figure 1: Insert Field Dialog

If you are unfamiliar with the Insert Field button, you can start your research here.

Step 2: The “DateTime Field” dialog
The DateTime dialog will open. This dialog gives you the possibility to specify your DateTime Field based on the given options.

The DateTime dialog.
Figure 2: Insert DateTime Dialog

Step 3: Build your calculation
Add your DateTime calculation to the pattern field. The syntax for this field is described here. In our case, we will add 5 days to the due date of a quote.

Please note: The layout of the dialog will change depending on your used syntax.

You have the option to insert any field even if it is not a DateTime Field. Please do this at your own risk.

Build your DateTime Field calculation.
Figure 3: DateTime Field Syntax

Step 4: Add a placeholder text [optional]
❶ You can set a placeholder name for your field so you find it easier in case you have to modify your template in the future.

Set optional placeholder text.
Figure 4: Placeholder

Step 5: Add formatting options
Since we now have our syntax configured, we would like to define a format. This can be done by selecting one of the given options in the Unit Type, Format or Culture dropdowns.

The dialog provides us with different options for ❶ DateTime and ❷ Difference (subtraction of two dates) results.

Based on this type we will have one of the two following dialogs.

Formatting options based on the selected syntax.
Figure 5: Different options based on the selected syntax

Step 6: Insert the field
Now the DateTime Field is successfully defined. Click on the OK button to insert it into the document.

A sample result.

Figure 6: Finished Template

Step 7: Save the template
The last and final step is to save your template. Before you can use or test your template, you have to save it. You can either save your template locally with the standard Save or Save as functionality of Word, or you use the Save template option of DCP in order to publish the template to Dynamics 365.


Step 8: Test your template [optional]
As you make changes to your template, you may want to test them quickly.

A sample result.

Figure 7: Result Document

A step-by-step description of how to test your template can be found here.

That´s it! We appreciate your feedback. Please share your thoughts by sending an email to support@mscrm-addons.com.

Was this helpful?

Yes  No
Related Articles
  • Working with Product Properties in DocumentsCorePack
  • How to work with the Relationship Manager
  • Using virtual tables in DocumentsCorePack
  • DocumentsCorePack Template Designer Settings
  • How to solve: Failed to connect to an IPC Port
  • How to solve: Failed to connect to an IPC Port
Latest Articles
  • Working with Product Properties in DocumentsCorePack
  • How to work with the Relationship Manager
  • Using virtual tables in DocumentsCorePack
  • DocumentsCorePack Template Designer Settings
  • How to solve: Failed to connect to an IPC Port
Popular Articles
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • DocumentsCorePack Template Designer – Getting Started
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Online Service Configuration
  • Step-by-Step: How to configure a One-Click-Action
Top Rated Articles
  • IMPORTANT information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack connector for PowerApps & Microsoft Flow
  • Step-by-Step: How to configure a One-Click-Action
  • Online Services: Required Application Permissions
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
Categories
  • *News and General Infos* 51
  • Webinars 35
  • Template Designer(DCP 180
  • DocumentsCorePack(DCP 191
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 62
  • PowerSearch (PS 48
  • ActivityTools (AT 59
  • SmartBar (SB 53
  • GroupCalendar (GC 46
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2022 www.mscrm-addons.com. All Rights Reserved.