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 / String column to date ...
Power Automate
Unanswered

String column to date in Json

(1) ShareShare
ReportReport
Posted on by 10

Hi guys,
With Power Automate, I save attachments from outlook to sharepoint library. This is an excel file. Then I create a table by saying create table. Then I get the whole list by saying list rows. Compose has the value of the entire list. I make the json value that comes out of here parse json content. However, in excel, the date column appears as a custom. The data for 08/06/2024 appears as 45521 in Compose. How do I convert this to date format ?
Here is my flow.

mstf042_0-1719931910504.png

Json Schema is:

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "@@odata.etag": {
                "type": "string"
            },
            "ItemInternalId": {
                "type": "string"
            },
         
            "Son Hareket\nTarihi": {
                "type": "string",
                "format": "date string"
            },
            "İst_x002e_Var_x002e_": {
                "type": "string",
                "format": "date string"
            }
        },
        "required": [
            "@@odata.etag",
            "ItemInternalId",
            "Son Hareket\nTarihi",
            "İst_x002e_Var_x002e_"
        ]
    }
}

Here is my excel file.
mstf042_0-1719932431638.png

 


Please help me.
Categories:
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @mstf042 When working with dates and times and List Rows Present in a Table action, you need to ensure you select ISO8601 as the DateTime format. Otherwise it'll output a serial date.

    creativeopinion_0-1719934638884.png

     

    You may be interested in this YT Tutorial: 

    How to Work with 📆 Dates in Power Automate | Example Scenarios and Tips & Tricks

     

    Are you easily stumped when working with Dates in Power Automate? In this Power Automate tutorial, I’ll show you how to compose an expression that will return a future date, a past date, how to count the number of days between two dates, how to check for a birthdate and anniversary date as well as tips and tricks when working with dates in Power Automate.

     

    I’ll cover some common use cases and concepts that can help you to build better Power Automate flows. Feel free to skip ahead using the timestamps listed below. I’ve also linked a few other tutorials that you might be interested in as well.

     

    IN THIS VIDEO:

     4 Date Functions You Need to Know

     How to use the Convert Time Zone Action

     How to Get a Future Date

     How to Get a Past Date

     How to Return SharePoint Items Due in a Number of Days

     How to Return SharePoint Items Due within a Date Range

     How to write a Filter Query for SharePoint Items Due in 30, 60 and 90 Days

     How to Calculate the Number of Days between Two Dates

     How to Check for a Birthdate and Anniversary Date

     How to work with Dates and Times in Excel

     How to use a Manual Trigger with Date Input

     How to Output Dynamic Text with an Expression

     How to Check if a Date Falls on a Weekend

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • CU02011135-0 Profile Picture
    10 on at

    Hi,

    Thank you for reply. In my case I set ISO 8601. But it is not running.

    mstf042_0-1719934909935.png

     

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
11manish Profile Picture

11manish 231 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 170

Last 30 days Overall leaderboard