How to set the current time of a field after submit the form

Hello team,

I want to set the current time of a filed …how to set the current time to a filed .?when user submit the data then automatically it will take the current time
using custom script hows this possible can anyone help me for the same …

Thanks

Which Field on on which doctype you want to set? After submit it should set automatically to the time of creation???or you should be able to update it afterwards.

hello prashant ,

I want to set the current time of server to a filed name is posting time which is available in stock entry