0
Completed

next yahrzeit observance date

Mal Sokol 4 days ago updated by Michael J. Radwin 4 days ago 1

using the yahrzeit anniversary api to get a list of observance dates whic hdepends on starting year and number of years.  I would like to know if thee is a specific call for next observance date which would take into account today's date english or hebrew and find the first observance after today or today for tht matter.   I had some comple logic in one in one script but if there is a simple cal lit would be grea.  Eilse I hae to  compare the date say the observance for 5786 with 1 returned date and if that is before today redo the call with next years Hebrew date to start.

Answer

Answer
Completed

when using the API, to get the next occurrence, omit the start and end parameters, and specify years=2. Then, in the returned results, examine the date in the first item. If the date is before today, then ignore the first item and use the second item. If the date of the first item is today or later, then the first item is the next upcoming observance.

Answer
Completed

when using the API, to get the next occurrence, omit the start and end parameters, and specify years=2. Then, in the returned results, examine the date in the first item. If the date is before today, then ignore the first item and use the second item. If the date of the first item is today or later, then the first item is the next upcoming observance.