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 / Need help to fix date ...
Power Automate
Answered

Need help to fix date issue

(0) ShareShare
ReportReport
Posted on by 2

I have excel data and it has the date column of created.

Its in power automate.I'm using excel as connector. I used the formula for adddays('1899/12/30',int(item()?['Created']),'yyyy/MM/dd') is not working it says the template language int is invoked.value cannot be converted as target type.

I used the other formula for 

div
(
sub
(
ticks(formatDateTime(item()?['Created'], 'yyyy-MM-ddT00:00:00')),
599264352000000000),
864000000000
)
It says its not in iso format.
Kindly let me know how to go about this.
Thanks.
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Priyanka03 ,

    When querying data from excel, set the Date time format to ISO 8601.

    What is your logic behind adding days?

    SudeepGhatakNZ_0-1690153443514.png

     

  • Priyanka03 Profile Picture
    2 on at

    @SudeepGhatakNZ ,

    I need to filter the older 60 days of record (created Column) from current date. 

    Later i need to check the date difference between created to completed .

    If i put that option in list rows then i'm trying to format the date as formatdatetime(item()?['Created'],'MM/dd/yyyy') it throws an error that is not iso format.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    If you add item()?['Created'] in a compose message what does it print?

     

     

  • Priyanka03 Profile Picture
    2 on at

    I put the same in iso format in list rows but all of my date column is changed into iso format except one column is like 45096 this format. so if i'm trying to formatdatetime(item()?['Accepted'],'MM/dd/yyy')

    it throws an error string doesn't match the iso format. 

     

    Could you please tell me how to overcome this?

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Please format the column with the Date option. I think it is currently set to General

    SudeepGhatakNZ_0-1690407579807.png

     

    Why is Excel Changing Dates to Random Numbers? | Date Changes to 5 Digit Number - YouTube

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