Adding code to forms

We need to place get_current_user on a field and we also need to place DATE_now and TIME_now on a form since we need to capture the username, plus actual date and time of submitting the form… Is that possible?