Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

#each code that shows a different date in my marketing email.

(0) ShareShare
ReportReport
Posted on by 235

Hi, 

I have created a code for merging a field with an #each code. There are no errors so the code works. 

This is the result

pastedimage1599630333221v1.png

But the date should be pastedimage1599630403472v2.png

I have tested many contacts and the code shows the date 1 day before for all of them. 

Does anyone has any suggestion of what this could be? 

Camilla

  • Camilla Larsson Profile Picture
    Camilla Larsson 235 on at
    RE: #each code that shows a different date in my marketing email.

    HI Shawran

    1.  Data Type: Date and Time Field, Behavior; User Local, Format; Date Only

    2. {{#each contact.new_unsubscription_contact_new_customerid}}

    {{this.new_validfromdate}}.

    {{/each}}

    3. Not sure- where can I find and see the timezone in the system?

    Kind Regards

    Camilla

  • Suggested answer
    ShravanSuri Profile Picture
    ShravanSuri 1,255 on at
    RE: #each code that shows a different date in my marketing email.

    Hey Camilla, could you share details like -

    1. Which date field you're referring to? Is it the event start date?

    2. How your [tag:each] code is written

    3. What timezone is your system in?

    Thanks,

    Shravan

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: #each code that shows a different date in my marketing email.

    Hi Camilla,

    In marketing email,  Handlebars expression reads date value from Created On field of record,

    however, in Dynamics system, the Created On field of all records will be saved in UTC format, that is by design;

    while the date what we see in view and form are formatted date actually(The date in our time zone).

    You could submit what you had found to Ideas forum.

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans