How to automatic update date and time when save custom post type

I need to update date and time when I save posts. I see the code on the following thread, but I need to have this trick only for posts contained in my custom post ‘new_cpt’

Is it possible?

ref: Update post date to modified date automatically