Skip to main content
Community site session details

Community site session details

Session Id : FyJ0KeHt6Mm7+cU8lp9XXX
Power Automate - Building Flows
Answered

date formula

Like (0) ShareShare
ReportReport
Posted on 26 Jul 2022 21:01:11 by

hello everyone, I need help what happens is that I have a list of sharpoint in which I have different animals with date of birth, I need that the formula me remove the animals according to the month in which this is, say if today is July the month is 07, all the 07 animals are eliminated when it is in July and so with the following months, but this formula that I am using does not work or if it is not the correct, I add the current month with 1 more and gives me the 08 August but at the time of eliminating the item does not eliminate anything, please if I have to use another formula or if I am failing at something

Noone123_1-1658869050573.png

Noone123_2-1658869068650.pngNoone123_3-1658869093349.png

 

 

 

  • Verified answer
    v-liwei-msft Profile Picture
    on 01 Aug 2022 at 08:23:41
    Re: date formula

    Hi @Noone123

     

     

    Could you please tell me:

    What is the datatype of your nacimiento column in SharePoint?

    In your second screenshot, the two parameters of the formula you entered in the filter query are not equal.

    2022-8 is not equal to 2022-08.

    The value returned by the formatDateTime function in the third screenshot is of type 'yyyy-MM' (eg 2022-08).

    2022-8 is not equal to 2022-08.

    Make sure your nacimiento columns are formatted correctly.

     

    Best Regards,

    Levi

     

  • Caspar_Rubin Profile Picture
    830 on 27 Jul 2022 at 18:12:39
    Re: date formula

    Hey, your Filter Query in the "Get items" action is missing the spaces between the dash (-).

     

    Shouldn't it be

     

    nacimiento eq '2022 - 08'

     

    instead of 

     

    nacimiento eq '2022-08'

     

    ? 😃

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete