There is no one right place for the code, but you place it where you want it located. Geneally one puts the code for setting the current date as a document level script so it is initialized to the date time the document was opened. But one might palce it in a submit button to update the date and time for the submission time.
Thank you. This was great information
Thank you for your info, I am just looking for this.