Reply To: Date Sequence: Brent

#9399
Richard Page
Keymaster

This is an approach I’ve seen where the logic after 12th “eom 1” starts similarly to the 1st 11 months, but then does a comparison between the 1st day of the next month and the gbd -1 dates. This seems to be only for New Year’s Day though, I think.

begin:
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date pop
eom 1 days 1 push gbd -1 date
jmpgt
jmp
gbd -1
date
pop
loop begin

Download PDF version

This field is for validation purposes and should be left unchanged.