https://www.d365snippets.com/2023/07/date-functions-in-dynamics-365-finance-and-operations.html