mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/DocumentsCorePack(DCP)/How to insert the current date with the DateTime function

How to insert the current date with the DateTime function

8416 views 4 Updated on January 28, 2025

This article describes how you can insert the current date with datetime function using Advanced String.  

Note: Do not use the DateTime Field option if you only want to insert the current date. The DateTime Field option is only for performing calculations with Dynamics 365 date fields (see this article). 

Step-by-Step Walkthrough: Insert dates and date operations in document templates for Dynamics 365

Step-by-Step description 

To insert the current date, first select the Advanced String option under the Insert Field menu as shown below. 

Inserting an Advanced String field
Figure 1: Inserting an Advanced String field
The Advanced String properties window will open. The current date can be added either through the ❶ Property Designer or through ❷ text.
The Advanced String properties window, with the Designer and Text options noted
Figure 2: The Advanced String properties window, with the Designer and Text options noted

To add it through the Property Designer, right-click within the field and select either DateTime() or DateTime(format, culture).  The latter is used to format the resulting date according to the specified format strings. 

How to insert the current date with the DateTime function
Figure 3: The DateTime() options, highlighted
How to insert the current date with the DateTime function
Figure 4: An example DateTime() configuration

In the text property designer, you must manually enter the DATETIME() field and any desired formatting. 

How to insert the current date with the DateTime function
Figure 5: The DateTime() configuration from Figure 4, in the Text tab

Note: When you add fields to the Property Designer, they display in text when you switch to the Text Property Designer.

Click OK, after entering the value.  The resulting document will show the current date, formatted as specified. 

How to insert the current date with the DateTime function
Figure 6: Our resulting date

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

Was this helpful?

4 Yes  13 No
Related Articles
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
Latest Articles
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How to find your environment’s unique name in Microsoft Dynamics 365
  • How licenses are counted
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 260
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 76
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
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
  • © 2025 www.mscrm-addons.com. All Rights Reserved.