Nice challenge. At first I was looking to see if there was a DateTime specifier in the documentation. Failed to find anything. Just built a quick logic to solve it:
included 2 alternative solutions, because I did think that one solution was more robust/flexible, but the other solution was more simple/elegant. thanks for this challenge.