DateTime dialogues, Business Central is slowly catching up!

No reason to assume that you’ll have to do everything yourself. The system library is getting more and more useful functions, check this out:

https://youtu.be/-xbQ0IYxuPc