Local variable doesn't work anymore?

For some reason declaring a local variable doesn’t seem to work anymore, the following is an example, Fedora 42, kde ;

$ MBSID=‘MBS’+$(date %Y%M%D%Y%H%M%S)
date: invalid date ‘%Y%M%D%Y%H%M%S’

nope… your date command throws an error because it’s missing an ‘+’

Do you intend MBSID to have a ‘+’ character in it?
In shell programming the + is just a character, not string concatenation.

That probably would work if it were
MBSID=MBS$(date +%Y%M%D%Y%H%M%S)
You could verify it with MBSID=MBS$(date +%Y%M%D%Y%H%M%S) && echo $MBSID

I doubt that the actual formatting seen is what you expected. Check the info in man date to see why it does not appear as desired.
You probably would want date +%Y%m%d%H%M%S