John Mueller said that having dates in URL are fine and many publishers doing it to give their URL a unique ID & used in Google news.
Also Read>> Google Select Canonical URLs based on User Preference and Site
Check out the screenshot of tweet attached:-
You can insert dates in your URLs, Google does not have any problem if you consider it and will not harm your ranking anyway.