• Release History
  • Documentation
  • Back to www.mscrm-addons.com
  • Release History
  • Documentation
  • Back to www.mscrm-addons.com
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

8171 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
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
  • Generate and send a document for e-signing using DeepSign
  • How to prepare a document for DeepSign
  • Why Document Generation Is Still the Most Broken Part of Your CRM Workflow
Latest Articles
  • Introducing the DocumentsCorePack Template Designer Office Add-In (Beta)
  • How to Eliminate Excess Storage Costs in Microsoft Dynamics 365 Without Losing Access to Emails and Attachments
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
  • Generate and send a document for e-signing using DeepSign
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 licenses are counted
  • How to insert Condition Fields in DocumentsCorePack Templates designer
Categories
  • *News and General Infos* 64
  • Webinars 45
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 258
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 74
  • 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
  • © 2022 www.mscrm-addons.com. All Rights Reserved.