I'm trying to build a date separator, which spans the entire width of the page and has a boxed date on the right. This is what I've written so far:
Test test test.
\par\noindent\hfill\rule[3.4pt]{0.7\textwidth}{0.5pt}\fbox{\texttt{2021-04-08}}
Test test test.
I'd like to do the following:
- have
\rulespan the entire\textwidth, up to the box on the right - have
\rulesit at half the height of the box (I guess that's almost done already) - start a new paragraph after the date (currently it continues in the same line)

