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 / Extracting Date from T...
Power Automate
Answered

Extracting Date from Text Column

(0) ShareShare
ReportReport
Posted on by 8
Populating Date from Text with Automatic Date Column
I need to extract latest date from "Status Update" where you can add or modify text and date is added automatically. Extracted date should be added to brand new column "Status Date". 
This is needed to check when latest event in "Status Update" column was added,  and then count how many days from today.
Extract.PNG
Categories:
I have the same question (0)
  • Suggested answer
    rzaneti Profile Picture
    4,476 Super User 2026 Season 1 on at
    Hi,
     
    You may need to use a few text expressions to achieve this result.
     
    Based on your description, it looks like the Status Update column follows a default template, where different updates are inserted in a descending order, separated by a line break and containing a title, a date/time between parenthesis and a description after a colon.
     
    For the purposes of this answer, I'm working with the following sample data to simulate an entry in your SP List column. I'm focusing only in the expression issue for now, without covering the connection with SP List for read/update records, but if you need some support with Power Automate/SharePoint integration, I can send you a few additional instructions.  
     
    The data to be extracted is the date from Update 2, and we can achieve it by adding the following expression to a later action in the flow: first(split(split(outputs('Compose_-_Status_Update'), '(')[1], ' ')). This expression is isolating the text between the first "(" and the subsequent blank space: 
     
    At this point, you already have the most recent update date, and for getting the quantity of days between then and today you will need to use the following expression in a later action: first(split(dateDifference(utcNow(), outputs('Compose_-_Extracted_date')), '.')). This second expression gets the timespan of the date difference and extracts only the quantity of days that passed:
     
     
     
     
    Since I'm not connecting to SharePoint for this example, my flow looks like this:
     
     
    After running the flow, those are the outputs (12/13/2024 as extracted date and "-26" days between Dec 13 and today):
     
     
     
    Additional resources
    I'm also sharing a few resources about the topics discussed in this solution that can be useful for you or any other users that find this thread in the future:
    - Extracting days and time from timespans in Power Automate: http://digitalmill.net/2024/04/16/extracting-days-and-time-from-timespans-in-power-automate/
    - Video that is not directly related to this thread topic, but contains an example very similar to your use case on how to use text expressions to extract parts of a text with Power Automate: https://youtu.be/RIaAi6Cmevw
     
    Let me know if it works for you or if you need any additional help!


    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Accepted Answer.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/
    https://www.linkedin.com/in/raphael-haus-zaneti/
  • Verified answer
    TS-18120831-0 Profile Picture
    8 on at
    Great to see that response, If possible could you please provide me information how to connect this flow to sharepoint ?
    Thank you in advance ;)
  • Verified answer
    TS-18120831-0 Profile Picture
    8 on at
    I was trying to implement that, but powerautomate can't find "Status Update" column. 

    "Action 'Compose_-_Extracted_date' failed: Unable to process template language expressions in action 'Compose_-_Extracted_date' inputs at line '0' and column '0': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#split for usage details.'."

     

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 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard