web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTML table date format
Power Automate
Unanswered

HTML table date format

(0) ShareShare
ReportReport
Posted on by 44

Hello,

 

I need to change the format for the Date Due column. But I keep getting an error.

 

this is the format I do not want

IMG_8679.jpeg

this is the HTML table and the expression I used

IMG_8683.jpeg

IMG_8682.jpeg

the error

IMG_8681.jpeg

Categories:
I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Alondrae05 

     

    I think your expression is incorrect, it should be:

     

    formatdatetime(item()?['Due Date *****'], 'MM/dd/yyyy')

     

    You missed of one Y from the YYYY.

     

    Try that and see how you get on.

     

    Regards,

     

    Andrew

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Alondrae05,

    I think the reason why you have this issue is that you have empty date value in your SP list.

    You just need to modify your expression as below:

    if(equals(item()?['DateDueColumn'],''),null,formatdatetime(item()?['DueDateColumn'], 'MM/dd/yyy'))
  • AE-12082315-0 Profile Picture
    44 on at

    Hello, 

    It gave me the following error. 

    IMG_8689.jpeg

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @Alondrae05,

    Modify as below:

    if(equals(item()?['DateDueColumn'],null),'',formatdatetime(item()?['DueDateColumn'], 'MM/dd/yyy'))

    Actually, it is better that you could show me how you write your expression.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard