Skip to main content

Notifications

Announcements

No record found.

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

Each code and date format

Posted on by Microsoft Employee

Hi, 

I have  a code for retrieving a  date field with an #each code:

pastedimage1600072500059v3.png

The code works fine, but the date format is not what I want to show customers in an e-mail.

It look like this:

pastedimage1600072578434v4.png

As you can see, it's an american date format, which is a bit confusing in northern parts of Europe. What I would like to show, is this: 10. september 2020 or possibly this: 10.09.2020

Is there someway I change the date and format settings?

Best regards,

Asle

  • DWC Profile Picture
    DWC 51 on at
    RE: Each code and date format

    Additional Note - If MS support people tell you dates aren't supported, point them to this;

    docs.microsoft.com/.../known-issues

  • Suggested answer
    DWC Profile Picture
    DWC 51 on at
    RE: Each code and date format

    This is a very late response to the thread - just posting if it helps someone else;

    Dates are supported in emails - if your trying to insert a date field and get an error then you need to contact Microsoft to get the functionality enabled for your tenancy.

    If dates are working (like with the person who posted the question) the date is being inserted but not formatted how you'd like - then you need to contact Microsoft and tell them how dates should be formatted.

    The limitation with this - all date fields have to be formatted the same, and obviously it uses the format you told MS to use for your tenancy.

    In our case, we're inserting an event date in an email with simple code like: `{{msevtmgt_event(3f82b043-bd91-4d5a-8fe0-5c9db5226fdf).msevtmgt_eventstartdate}}`

    And we defined to MS that we want our dates to be formatted as "dddd MMMM d, yyyy" - so if an event has a start date of today (when im posting this) then it would be formatted\displayed in the email as "Monday July 4, 2022"

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Each code and date format

    Hi Asle,

    Thanks for your feedback.

    However, currently date format of marketing email is not supported to be customized by us. :(

    You can find all available customization to content of marketing email here:

    https://docs.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content#advanced-dynamic-content

    Please wait for future update to fix it. :)

    Regards,

    Clofly

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Each code and date format

    Hi Clofly,

    Thanks for the answer, but my inquiry is actually different. Mine is about the date format, but Camilla's request is about the date retrieved from field not corresponding with the actual date in the field (one day short due to UTC) I read that the latter is designed by purpose, but hopefully the way the date format is shown can be changed in settings.

    Best regards

    Asle

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans