This Templater snippet outputs the previous day’s date from 12 AM to 6 AM:
<%* tR += tp.date.now("YYYY-MM-DD ddd", moment().hour() < 6 ? -1 : 0) %>
I put this in H1 of my daily note template.
This works for me because I automatically sync note first line with filename via First Line is Title.