\documentclass{article}

\usepackage[a4paper]{geometry}

\title{ P22167 }

\author{ Sam Wilson }

\date{ 2021 April 1 (Thursday), 10:16AM }

\begin{document}
\maketitle
\tableofcontents

Or maybe I'll just turn it all off. Seems easier!

\end{document}
