The source code src/date.c is written mostly bottom-up, a style which does
not need forward declarations. Here's a patch to make it entirely bottom-up,
removing the last needed forward declarations.
NB: I'm not saying that bottom-up style is "better" or should be _generally_
preferred to the top-down style. Each has its own benefits. Only that
having an 80% bottom-up style with a helper function at the end (20%
top-down style) makes the code hard to understand.