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 / Formatting Date using ...
Power Automate
Answered

Formatting Date using Select Value

(0) ShareShare
ReportReport
Posted on by

All,

In the below - I am trying to use the formatDate command to show the dates formatted in the general format (example: 3/29/2021 1:45 PM) as when I have the SharePoint fields Start Date and End Date in the Select  it shows them formatted as such for example: 2022-03-29T17:00:00Z and I'm trying to format them nicely - therefore what is the syntax for this that is best to accomplish what I'm trying to do: 

koneill2020_0-1648690108238.png

 

Categories:
I have the same question (0)
  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @koneill2020 

    This is the expression that you should be using, replace the format with whatever your format is and start date with the correct column names in sharepoint.

    if(equals(item()?['StartDate'],null),'',formatDateTime(item()?['StartDate'],'dd-MM-yyyy'))

     

  • koneill2020 Profile Picture
    on at

    @Mira_Ghaly Many thanks! These logic aspects like that - I always struggle with.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard