\DTMnewdatestyle{margindate}{
	\renewcommand*\DTMdisplaydate[4]{
		\MakeLowercase{\DTMshortweekdayname{##4}}\space
		\number##3\relax\space
		\MakeLowercase{\DTMshortmonthname{##2}}\space
		\DTMtwodigits{\DTMtwodigits{##1}}
	}
	\renewcommand*\DTMDisplaydate[4]{
		\DTMshortweekdayname{##4}\space
		##3\space
		\DTMshortmonthname{##2}\space
		\DTMtwodigits{\DTMtwodigits{##1}}
	}
}

\NewDocumentCommand\MarginContent{m}{
	\marginpar{
		\small\textsf{\mbox{#1}}
	}\relax
}

\NewDocumentCommand\MarginDate{m}{
	{
			\DTMsetdatestyle{margindate}

			\MarginContent{\DTMDate{#1}}
		}
}

\NewDocumentCommand\AnnotatedSection{m m}{
	\section{#1}
	\MarginContent{#2}
}
\NewDocumentCommand\DatedSection{m m}{
	\section{#1}
	\MarginDate{#2}
}
