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.