How to change a text field's contents to all uppercase letter

I tried date_select but I kept getting a bunch of errors.

This is the location I've gotten it from in the past:

What errors?