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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTML Table: Convert in...
Power Automate
Suggested Answer

HTML Table: Convert int to date format

(1) ShareShare
ReportReport
Posted on by 72
Hi Everyone,
 
I'm trying to create a flow which 
  • reads an Excel named table from an Excel worksheet which contains appliance serial number, model, support end date and customer,
  • selects relevant columns (serial number, model, support end date),
  • selects the appliances that are past the support end date,
  • creates an HTML table with those appliances,
  • sends an email with the HTML table embedded in the mail body. 
 
Here is my Excel table:
    
 
Serial Number Appliance Model Support End Date Customer
FRZ001691 FRZ003 12/31/2024 Tolga Industries
FRZ001532 FRZ003 12/31/2024 Tolga Industries
FRZ001037 FRZ003 12/31/2023 Tolga Industries
DSW001616 DSW001 12/31/2024 Tolga Industries
LAU001216  
LAU001
12/31/2024 Tolga Industries
DSW001316 DSW001 12/31/2024 Tolga Industries
FRZ001691 FRZ003 12/31/2022 Tolga Industries
LAU001150 LAU002 12/31/2024 Tolga Industries
LAU1121 LAU002 12/31/2024 Tolga Industries
DSW001280 DSW001 12/31/2023 Tolga Industries
 
 
 
Here is my flow;
  

 
 
 
Here is the HTML table in the email:
 
 
 
 
So, the flow works. But as you see in the HTML table above, the date is in integer format. 


My question is, how I can accomplish the same email/HTML table, but with the correct date formatting - for example DD-MM-YYYY.
 


Thank you
 
Tolga
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    In the list rows in table action - make sure to select the below highlighted value to show date in ISO format rather than as a number.
     
     
    if after that date appears but not in desired format, use format datetime expression to convert date to desired format.
     
    Hope it helps !
     
    Thanks & Regards,
    Nived N
     
    Mark it as solution if it helps !
  • tolga-balci Profile Picture
    72 on at
    Hi Nived,
     
    Thanks for your reply. 
     
    I just could not figure out how I would be able to perform date operations - less than, greater than - if I select ISO date format. Can you please clarify?
     
    Thank you.
    Tolga
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi, 
     
    for doing date comparison - i would recommend to find difference b/w dates in terms of days/month etc using ticks function, refer below post for getting more details on that
     
    So here if we take an example of 2 dates,
     
    date1= 2021-10-25
    date2= 2021-10-26
     
    now to check whether date2>date1, take the difference b/w date2 and date1 using ticks function as mentioned in the above blog and then see whether the resultant of that ticks function returns positive value  or not, if positive value- then it implies that date2>date 1
     
    Hope it helps !
     
    Mark it as solution if it resolves your query !
     
     
  • Chriddle Profile Picture
    8,441 Super User 2025 Season 2 on at
    There is no need to use ticks()!
    String comparison of dates works fine (if you use ISO8601):
    greater('2021-10-25', '2021-10-26')
     
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Great @Chriddle
     
    never thought this can work up, i have used once with condition action operator, but did not worked up that time. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard