简体   繁体   中英

How to change date format in Email Template of Dynamics365?

I want to get the date in this format - MM-dd-yy. For example: 10-12-23

I'm writing this code but don't getting the desired solution -

<a href="{!<entity_name>;}">{<entity_name>:<attribute>/@date;} Check-In Link</a>

What should I write in the date part?

I'm afraid the only way to make it work is to set the user's locale to a locale that uses MM-dd-yy format. Alternatively, it's possible to create a custom string field, populate that field with a properly formatted date and use the value of it in your template.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM