How do I change the datetime format from ( ‘y-m-d’ ) to ( ‘d m y’ ) [closed]

This doesn’t have anything to do with WordPress, just some PHP code to get what you’re after.

You need to convert MySQL datetime to Unix time by using:

$timestamp = strtotime($psm_mod_datetime);

Then you output this timestamp in the format you desire by using:

echo "Updated: ".date('d F Y', $timestamp);