Developer forum

Forum » CMS - Standard features » Date field and placeholder tags for marketing emails

Date field and placeholder tags for marketing emails

Martin Moen
Reply

We are trying to display a date inside one of our emails. The field is registered as Date, not DateTime on the user.
To show the date we use the placeholder tag as mentioned here:
https://doc.dynamicweb.com/documentation-9/marketing/email-marketing/placeholder-tags

The issue is that the date is displayed with time, and not only as date.
Is it possible to format this within the placeholder tags?

Ex.:
31.10.2022 00:00:00 should have been 31.10.2022


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

I am affraid it is just a tostring on the object it self, so that is how .net handles this...

It will require a change to the email renderer to change this.

Maybe add a span with a width and overflow:hidden could solve it - quirky maybe, but could work...

Votes for this answer: 1
 
Martin Moen
Reply

Thanks Nicolai!
Agree, a bit quirky, but I'll try.

Or else we might ask the users to register complete time of birth, including hours/minutes/seconds.
It wont get more personalized than that I guess :P

 
Nicolai Pedersen
Reply

Another solution is to "copy" the information to a string field formatted in short version and use that string field for the mail merge...

 

You must be logged in to post in the forum