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 / How to format the date...
Power Automate
Unanswered

How to format the dates just by extracting the Days from particular part of web page position using JavaScript

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a use case; In that I have to extract the Days from particular web page position... And that that date should get modified in the form of dd-MM-yyyy. Using the JavaScript for web page activity.

 

Please help me on this scenario. If I have multiple days means; all need to be formatted in above date format and has to be stored in the for

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    Please refer the below video link which is to read the value from webpage using javascript.

    Likewise you will need to write the value to the webpage.

     

    Injecting JavaScript to Webpage 




    -------------------------------------------
    Help fellow beings find relevant posts.
    Upvote for a supporting response.
    Mark as solution for an answer.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I assume you get the dates via JS; however, you can modify the date format using PAD.

     

    Once you have the list of dates (%List1%) and assumedly they are recognized as dates, do this:

     

    • Create List %List2%
    • For Each %CurrentItem% in %List1%
      • Convert Date %CurrentItem% to Text; Custom Format; dd-MM-yyyy to %FormattedDate%
      • Add Item %FormattedDate% to %List2%
    • End

     

    This will format each date in your list and add it to a new list once it is formatted.

     

    Best of Luck!

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard