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 / Date Format not keepin...
Power Automate
Unanswered

Date Format not keeping month correctly

(0) ShareShare
ReportReport
Posted on by

Hi there,

I am pulling in the date from an excel file and have to convert it to a string so I can pass it back to PVA.

 

The issue is the month keeps changing to 00?

 

In the format date and time I have ,'dd/mm/yyyy') at the end of the expression.

 

The day and year is correct, why is the month going screwy?

 

 

formatDateTime(outputs('Get_a_row')?['body/Last modified Date'],'dd/mm/yyyy')
 
 

That's the expression.  I can't upload pics for some reason, I click the icon and nothing happens.  

 

When I do the test, the get a row pulls in the correct date, but the output from the initialise variable is 28/00/2021 for example as opposed to 28/09/2021

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @Anonymous ,

    lower case mm are minutes, months are upper case M or MM. 

  • Community Power Platform Member Profile Picture
    on at

    Thanks @tom_riha  that was exactly the issue.  Cheers

  • geddb Profile Picture
    109 on at

    OMG - it beggars belief how such a simple thing can cause so many headaches for those not in the know... Thanks heaps @tom_riha 🤘

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard