Update post (published) date when changing category

You can display the date the post was last modified, using the Default date format setting (e.g. F j, Y) from Administration > Settings > General.
Here is a code using Default date formate.

<p><?php printf( __( 'Last modified: %s', 'textdomain' ), get_the_modified_date() ); ?></p>