FYI, just tested this and if I choose SQL Server it works as I would like.
I have chosen Azure as the database. Here is an example of the SQL before and after formatting. DECLARE @start_date DATE='04-01-2021' DECLARE...