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 / Date Diff not working ...
Power Automate
Answered

Date Diff not working once format is changed

(0) ShareShare
ReportReport
Posted on by 57

Hi Community Champs,

 

I was able to get the date difference with this formulae

 

int(first(split(dateDifference(formatDateTime(utcNow(), 'yyyy-MM-dd'),
formatDateTime(parseDateTime(items('Foreach')?['Certifcation_x0020_Date']), 'yyyy-MM-dd')),'.')))

 

for the below Certification Date input

riti17_0-1707241342769.png

 

Now date format is changed to below

riti17_2-1707241575184.png

 

 

Error message:

The error occurred in the 'Condition__1' operation. The error message indicates that the value '27/12/2025' provided for the date time string is not valid. To fix this error, you should ensure that the date time string is in the ISO 8601 format, which is 'yyyy-MM-dd'. In this case, you should change the date value to '2025-12-27'.

 

I am using Google sheet, how should i proceed ?

 

Riti

 

 

 

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

    Just match your expression to the value of the string (eg 29/01/2024)

    formatDateTime(utcNow(), 'dd/MM/yyyy')

     

     

     

  • Verified answer
    riti17 Profile Picture
    57 on at

    @SudeepGhatakNZ 

     

    Thanks for your reply, I appreciate

     

    However this helped me here

     

    riti17_2-1707286803612.png

     

    Regards,

    Ritesh

     

     

     

     

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 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard