\documentclass{article}

\usepackage[a4paper]{geometry}

\title{ P26543 }

\author{ Sam Wilson }

\date{ 2023 January 7 (Saturday), 6:47AM }

\begin{document}
\maketitle
\tableofcontents

Afternoon tea.

\end{document}
