Date and time for submitted custom form

I want to get know when the form has been submitted and can be seen in database. Any method?