Display Only Date value from Date field in Dynamic CRM Global Email Template

Wanted to share a very utility post from my colleague – Rajesh

Amiz crm

One of my requirement is to display the date value form date field for my email template. But in CRM 2015, the date value shows with time, eventhough the selected date field as date only format. As Is CRM functionality I tried the below steps.

Create new email template and added my date field in that template using Insert/Update button.

Template date 1

Once I ran that template, I got the following output.

Template date 2

But I need the output as date only (like 1/25/2016).

I open the email template and enter the following text ‘{!lead:estimatedclosedate/@date;}’ and save the template.

Template date 3

Now I ran the template the Output was came with my exception.

Template date 4

I hope this will helps you 🙂

View original post

Advertisements

Author: Debajit

I am a Dynamics CRM Most Valuable Professional (MVP) with 10 years of experience in Microsoft .NET Technologies and 7 years of dedicated experience in Microsoft Dynamics CRM. I have worked with companies like Microsoft, SanDisk, PwC, TMF Group and have extensive experience of implementing complex CRM solutions from both offshore and client side. Currently the face of XrmForYou.com with significant experience in delivering corporate training on Dynamics CRM and have already delivered multiple projects to client through XrmForYou.com Author of multiple tools on codeplex including the 'Role Based Views' and 'CRM-Sharepoint Metadata manager & Attachment Extractor' which are available for commercial use under XrmForYou.com For consulting/ training, drop me a note at info@xrmforyou.com or visit our website www.xrmforyou.com

3 thoughts on “Display Only Date value from Date field in Dynamic CRM Global Email Template”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s