Interesting. Perhaps more useful for beginners than seasoned professionals.
The following sentence is inaccurate:
This code is using the GETDATE(); function which is not allowed in a stored procedure.
There is no problem whatsoever using GETDATE() in a stored procedure. The issue with your code is that you cannot include function calls in stored proc parameters.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.