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 / Calculation of Easter ...
Power Automate
Unanswered

Calculation of Easter Sunday date in power automate

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I'm working on creation of holiday reservation system via Lists and power automate. I've sucessfully excluded weekend days and now I'm trying to exclude public holidays. Is it possible to calculate Easter Sunday date for the next year?

 

Thanks for any idea!

 

Petr

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    Easter is determined as first Sunday after first full moon after Spring equinox, so you'd need moon data to calculate it.  It might be easier to just make an array of Easter dates for the next 10 years or so and use that.

    Pat

     

  • MacGhriogair Profile Picture
    2 on at

    I know this is an older post, but in case anyone is doing a search on how to calculate Easter Sunday, here is how you do it. You'll need a few Composes...

     

    I have a Compose called Year that holds the year that I'm trying to find the date.

     

    a

     

    mod(outputs('Year'), 19)

     

     

    b

     

    div(outputs('Year'), 100)

     

     

    c

     

    mod(outputs('Year'), 100)

     

     

    d

     

    div(outputs('b'), 4)

     

     

    e

     

    mod(outputs('b'), 4)

     

     

    g

     

    div(add(mul(8, outputs('b')), 13), 25)

     

     

    h

     

    mod(add(sub(sub(add(mul(19, outputs('a')), outputs('b')), outputs('d')), outputs('g')), 15), 30)

     

     

    i

     

    div(outputs('c'), 4)

     

     

    k

     

    mod(outputs('c'), 4)

     

     

    l

     

    mod(sub(sub(add(add(32, mul(2, outputs('e'))), mul(2, outputs('i'))), outputs('h')), outputs('k')), 7)

     

     

    m

     

    div(add(add(outputs('a'), mul(11,outputs('h'))), mul(19, outputs('l'))), 433)

     

     

    n

     

    div(add(sub(add(outputs('h'), outputs('l')), mul(7, outputs('m'))), 90), 25)

     

     

    p

     

    mod(add(add(sub(add(outputs('h'), outputs('l')), mul(7, outputs('m'))), mul(33, outputs('n'))), 19), 32)

     

     

    Month = n

    Day = p

     

    My Easter Days are string variables:

     

    varEasterSunday

     

    outputs('n')/outputs('p')/outputs('Year')

     

     

    varEasterMonday

     

    addDays(variables('varEasterSunday'), 1)

     

     

    varGoodFriday

     

    addDays(variables('varEasterSunday'), -2)

     

     

    I hope that this helps someone out there.

     

    Source for equation: https://en.wikipedia.org/wiki/Date_of_Easter#Algorithms

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard