# scrlttr2: How to move date to upper left corner?

I simply want to move the date of a letter to the upper left corner of the page.

Minimum Working Example (MWE):

\documentclass[english]{scrlttr2}

\usepackage{babel}

\newkomavar{fromplace}
\setkomavar{fromname}{Alice Alison}
\setkomavar{fromplace}{12345 Cologne}

\parbox{\textwidth}{%
\raggedleft
}
}

% \KOMAoptions{refline=dateleft} <--- To move the date to the left edge

\begin{document}

\begin{letter}{Bob Bobson\\40 Michigan Street\\US-1234 Oklahoma}

\opening{Hello Bob,}

\closing{Best wishes}

\end{letter}

\end{document}


Screenshot of the result:

Description of the issue:

I want to move the date to the upper left corner of the page. How to do so?

Solution approach:

With \KOMAoptions{refline=dateleft} I can perfectly align the date to the left edge, but how can I move it up to the top? Something like \vspace{2\baselineskip} does not work, because it just increases the vertical distance to the main text body (while moving the text downwards).

In best case, the date should be in the same vertical position like the fromname in firsthead (Alice Alison).

You can set the date as part of the firsthead block, by adding it in front of the name, i.e., \today\usekomavar{fromname}. In order to align the date to the left of the page and the name right you can put \hfill (horizontal fill) in between.

Then you need to switch off the normal date, using refline=nodate.

If you think the space between the addressee and the opening is too big you can cheat a bit by putting negative space at the end of the address.

MWE:

\documentclass[english]{scrlttr2}

\usepackage{babel}

\newkomavar{fromplace}
\setkomavar{fromname}{Alice Alison}
\setkomavar{fromplace}{12345 Cologne}
\KOMAoptions{refline=nodate}

\parbox{\textwidth}{%
\raggedleft
}
}

\begin{document}

\begin{letter}{Bob Bobson\\40 Michigan Street\\US-1234 Oklahoma\vspace{-2cm}}
\opening{Hello Bob,}

\closing{Best wishes}

\end{letter}

\end{document}


Result: