I will try to answer this as I have recently had to do it on one of my forms...
The art is to have a hidden field that is set to the current date/time, then once the user presses the submit button, the current value of the hidden field is copied into your displayed date/time field (first of all checking if the displayed field is not already filled in stops accidental additional pushing of the submit button)
Hope this helps