The strtoupper () function converts all characters in a string to uppercase. You can use it as follows:
strtoupper(format('F j, Y &\nb\sp &\nb\sp g:i a'));
If you have problems with spaces, remember that it is . Inserting capital there may also not work. You can try the following:
strtoupper(format('F j, Y'))." ".strtoupper(format('g:i a'));
source
share