• 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

4495 views 3 Updated on March 1, 2023

This article describes how you can insert the current date into a DocumentsCorePack (DCP) template and conduct date calculations with the DateTime function. 

1) Insert the Datetime Function as an advanced string

The DateTime Function must be inserted as Advanced String.

The DateTime Function inserted as Advanced String.
Figure 1: Insert DateTime via Advanced String

Do not use the DateTime field option if you just want to insert the current date. This option is to insert DateTime fields so that you can do some calculations with the CRM date fields. Have a look at the correct syntax here.

The DateTime field used to make calculations with the CRM date fields.
Figure 2: Insert the Datetime function as an advanced string

2) Format Options for the Datetime function

A full list of all available date format options can be found in this article.

Please note: When using the DateTime function, the System Time of DCP will be used.

  • With the ❶ Culture Setting: the Base Language of the set Culture will be used.
  • Without Culture Setting: the Base Language Settings of the Service User will be used.
 
An example with the Culture setting.
Figure 3: Example with Culture Setting set

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

Was this helpful?

3 Yes  5 No
Related Articles
  • Sample Templates 
  • Dynamic document Header & Footer selection via the DocumentsCorePack Dialog
  • Azure Blob Storage: Setting Recommendations 
  • Migrating One-Click-Actions Using the Data Migration Tool 
  • Force Service to be the only document-generating service
  • The DocumentsCorePack Dialog
Latest Articles
  • Sample Templates 
  • Step-by-Step: How to create an account sales report template
  • Step-by-Step: How to create a NDA-contract template 
  • Step-by-Step: How to create a work order template
  • Step-by-Step: How to create a quote template 
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Where do I find the Unique Organization name in Microsoft Dynamics 365?
  • mscrm-addons.com Application Access for Dynamics 365 (App Access) – DocumentsCorePack
  • DocumentsCorePack Online Service Configuration
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
  • Step-by-Step: How to configure a One-Click-Action
  • How licenses are counted
Categories
  • *News and General Infos* 52
  • Webinars 37
  • Template Designer(DCP 192
  • DocumentsCorePack(DCP 204
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 64
  • 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.