How do I format the font of a variable in Send an email (V2)

Methe, David 20 Reputation points
2026-11-18T13:43:31.45+00:00

I'm attempting to display the FormatDateTime in Bold font. the @format does not do it. Any suggestions would be appreciated.

User's image

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author
Julie Huynh 4,605 Reputation points Independent Advisor
2026-11-18T15:11:27.9366667+00:00

Dear @Methe, David ,

Good day! Welcome to Microsoft Q&A forum!

Thank you for your question. Based on your screenshot, it appears you're using the formatDateTime() function to format the date value. The formatDateTime() function controls how the date is displayed, but it does not apply font styling such as Bold.

I performed a quick test in Power Automate and was able to display a formatted date in bold by generating the value as HTML before inserting it into the email body.

You can try the following:

  • Add a Compose action before Send an email (V2)
  • In the Compose action, enter the following expression: concat('<strong>', formatDateTime(outputs('Get_item')?['body/ResponseDueDate'],'MMMM d, yyyy'), '</strong>')

User's image

User's image

  • In Send an email (V2), insert the Outputs value from the Compose action into the email body

User's image

User's image

During testing, the formatted date was rendered in Bold in the received email when the Compose output was used in the email body.

User's image

User's image

User's image

Kindly try the steps and let me know if they work on your end.

If the result differs in your environment, could you please share a screenshot of the complete Send an email (V2) configuration and confirm which Outlook connector is being used? I'd be happy to take a closer look and see whether there may be any connector-specific behavior affecting the formatting.

Kindly let me know when there are updates or if you need further assistance. Any updates you’re able to share would be really helpful.

I'm here and happy to help! Thank you for your kindness and patience! 

Was this answer helpful?

2 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Methe, David 20 Reputation points
    2026-11-19T14:01:14.36+00:00

    Hi @Julie Huynh I want to thank you for your help and quick response. I have no doubt that your suggestion would work Unfortunately, I'm unable to paste code in the email body (regardless of editor mode, html mode, plan text mode). I haven't been able to edit the code manually after several attempts and have decide not to bother with the bold font. That said, I really appreciate your expertise and assistance.

    Was this answer helpful?


  2. Methe, David 20 Reputation points
    2026-11-19T13:54:39.8833333+00:00

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-11-18T13:44:06.0133333+00:00

    formatDateTime() only controls the date’s text format; apply Bold to the expression token in the email editor or wrap the expression in HTML.

    Rich-text method

    In Send an email (V2):

    1. Click the date expression token in the Body field to select it.
    2. On the formatting toolbar, select Bold (B).
    3. Save and test the flow.

    The new designer supports rich formatting such as bold and italics directly in the email body. ^1^

    HTML method

    If selecting the token does not apply the formatting reliably:

    1. In the Send an email (V2) body editor, select the </> HTML button.
    2. Place the expression between <strong> tags:
    <p>Please complete your response by:
      <strong>@{formatDateTime(outputs('Get_item')?['body/ResponseDueDate'], 'MMM d, yyyy')}</strong>
    </p>
    
    1. Save the flow and run a test. The resulting date—for example, Nov 18, 2026—should appear bold.

    Power Automate officially supports entering HTML directly through the </> button in the classic designer. ^1^

    Keep your existing expression:

    formatDateTime(
      outputs('Get_item')?['body/ResponseDueDate'],
      'MMM d, yyyy'
    )
    

    That expression determines the displayed month, day, and year, while the surrounding <strong> element determines the font weight. The documented formatDateTime() parameters control the timestamp and output format—not visual styling. ^2^


    References

    1. Customize email in flows
    2. Customize or format date and time values in a flow
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.