User:RefDeskBot

What it does
First, it gets all the questions from the day before yesterday (this is at 0:00Z ish) and adds them to a daily archive page. It then grabs the section titles from this page and adds them to the monthly listing: like this, before transcluding the archive page onto the desk, and adding the date header at the bottom of the page.