web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help to fix date ...
Power Automate
Unanswered

Need help to fix date issue

(0) ShareShare
ReportReport
Posted on by

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,394 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
    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,394 Most Valuable Professional on at

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

     

     

  • Priyanka03 Profile Picture
    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,394 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard