The [`datetime` package](http://ctan.org/pkg/datetime) is now obsolete and I would like to switch to the newer [`datetime2` pacakge](http://www.ctan.org/tex-archive/macros/latex/contrib/datetime2), but I am having trouble recreating the behavior that I used the `datetime` package for. The following MWE works with the `datetime` package, but causes all sorts of problems with the `datetime2` package.

```
\documentclass{article}
\usepackage{datetime}
%\usepackage{datetime2}
\computedayofweek{19}{1}{2016}
\newcommand{\mydayname}{\dayofweeknameid{\the\dayofweek}}
\newcommand{\mydaynumber}{\ordinaldate{19}}
\newcommand{\mymonthname}{\monthname[1]}
\begin{document}
\mydayname, \mydaynumber \mymonthname
\end{document}

```

Is it possible to redefine `\mydayname`, `\mydaynumber`, and `\mymonthname` (with the possible addition of code before/after the definitions), so that they produce the same results with the `datetime2` package?