\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{resumeconfig}[2022/10/02 resume configurations]

\RequirePackage[useregional]{datetime2}
\DTMlangsetup{abbr, showdayofmonth=false, monthyearsep={\space}}

\newcommand*{\numdash}{\texorpdfstring{\,--\,}{--}}
% A range of dates.
% Syntax: \daterange{yyyy1}{mm1}{dd1}{yyyy2}{mm2}{dd2}
\newcommand*{\Daterange}[6]{%
  \textsc{\small%
    \DTMdisplaydate{#1}{#2}{#3}{-1}\numdash\DTMdisplaydate{#4}{#5}{#6}{-1}%
  }
}

\newcommand*{\Displaydate}[3]{\textsc{\small\DTMdisplaydate{#1}{#2}{#3}{-1}}}

\newcommand{\GPA}[2][4.0]{\textbf{GPA}: \ensuremath{#2 / #1}}