Update date/time field with current time on page load.

Update date/time field with current time on page load.

Is it possible to auto-update a date/time field with the current date when a page is loaded, using a client script?

The reason for my question is that I want to calculate the number of hours that have passed since the last modification of the record.