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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need to change the for...
Power Automate
Answered

Need to change the format of the output (date format)

(0) ShareShare
ReportReport
Posted on by 62

I need to convert the cr416_datepicker value format to just "yyyy-MM-dd" without this time and full fill the condition, any idea ?

 

1.png2.png11.png

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi @milan6412 ,

    Please change is equals to contains.

    vyetonggumsft_0-1719468174756.pngBest Regards,

    Sunshine Gu

  • uchiha1234 Profile Picture
    62 on at

    milan6412_0-1719468432744.png

    I tried but it gives me this error message

  • uchiha1234 Profile Picture
    62 on at

    since the other records doesnt have the datefield , it's returning empty. so I can't have contains

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @milan6412 ,

    Please try this expression:

    if(empty(items('For_each')?['cr416_datepicker']),null,items('For_each')?['cr416_datepicker'])

    Best Regards,

    Sunshine Gu

  • Chriddle Profile Picture
    8,515 Super User 2026 Season 1 on at

    Use coalesce() to check if the value is null and, if so, provide an alternative value (here an empty string)

     

    Replace 

     

    items('For_each')?['cr416_datepicker']

     

    with

     

    coalesce(items('For_each')?['cr416_datepicker'], '')

     

     

     

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard