You're trying to call the [man]date/man function yet you've simply placed the PHP code inside of a string. Instead, you want to concatenate the value of the date() function into that string. Basic example to show concatenation:
$myString = "Hello there, " . getName($thisUser) . " !";
Also note that MySQL can reformat a date string for you as well via the DATE_FORMAT() function.