\documentclass{article}

\usepackage[a4paper]{geometry}

\title{ First beer in Copenhagen }

\author{ Sam Wilson }

\date{ 2022 October 22 (Saturday), 5:31PM }

\begin{document}
\maketitle
\tableofcontents

It's a Tuborg not a Carlsberg.

\end{document}
