Brian Dunning's FileMaker Custom Functions

Easter ( myDate )

Show when Easter falls in the calendar year for any given date.

  Average rating: 4.4 (30 votes) Log in to vote

Mike Duncan   Mike Duncan
Duncan Creations
http://www.duncancreations.com

Share on Facebook Share on Twitter

  Sample input:
Easter ( fields::date )
  Sample output:
4/11/2004

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

A custom function for figuring when Easter falls in any given year, is based on the algorithm of Oudin (1940). More information can be found about the calculation at <http://tech.irt.org/articles/js052/>. In fact, the custom function used in this example was copied from that page with little modification.

I created an additional custom function:
floor.math (num)
Floor ( num )

In order to copy/paste in code with little modification. This really shows the power of the Let function.

 

Comments

Richard Dyce   Richard Dyce, Dyce & Sons Ltd.
Jan 8, 2020
Perhaps you mean 'floor' and not 'math.floor'? Also, for holiday calculations, it's worth pointing out that it's Easter Sunday, so Good Friday and Easter Monday are -2 and + 1 days respectively.
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: