ddate: add test

Closes #30318.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>