Skip to main content

Notifications

Power Automate - Building Flows
Answered

HOW TO USE TWO CONDITIONS FOR AN HTML TABLE, CORRECT DATES

(0) ShareShare
ReportReport
Posted on by 290
Hi,
 
I am requesting help to resolve my problem.
 
I have a List in Excel with dates, but they are not all the same, so I must use two conditions and with that I can correct and get it to a date format, but I don't know how to put these two conditions in my flow and have it reflected in my Html Table
 
Two Conditions
split(item()?['Fecha Publicacion'], 'T')[0]
split(item()?['Fecha Publicacion'], ' ')[0]
 
 
 
 
 
 
  • Suggested answer
    Nived_Nambiar Profile Picture
    Nived_Nambiar 17,039 on at
    HOW TO USE TWO CONDITIONS FOR AN HTML TABLE, CORRECT DATES
     
    I thought to check whether the formatting issue can be solved from datasource itself, by maintaining it in text/datetime format so that date format looks simmilar when viewing from power automate cloud.
     
    did you tried the method which i have shared ? - did that worked for you ?
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • fgonzalez515 Profile Picture
    fgonzalez515 290 on at
    HOW TO USE TWO CONDITIONS FOR AN HTML TABLE, CORRECT DATES
     
    Thanks for your response.
    Excel dates come from another data source, that is why they come in different formats.
    How can I make these dates be in the same order and be able to use Date Format?, since the Excel List is in ISO 8601.
     
  • Verified answer
    Nived_Nambiar Profile Picture
    Nived_Nambiar 17,039 on at
    HOW TO USE TWO CONDITIONS FOR AN HTML TABLE, CORRECT DATES
     
    Try this condition which cheks whether the date contains T word - if yes - split by T else by whitespace  in given field in HTML table
     
    if(contains(item()?['Fecha Publicacion'],'T'),split(item()?['Fecha Publicacion'], 'T')[0],split(item()?['Fecha Publicacion'], ' ')[0])
     
    Just wondering - why all dates are having different formats - it should be same actually - does that is reflected in excel ?
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

     
     
     
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard