Capitalized Date Month

I'm using the {time: MMMM Do, YYYY} script, but expanding this, it doesn't seem to force the MMMM or Do to push an all-caps month and day ordinal. {time: MMMM Do, YYYY} produces February 10th, 2021, not FEBRUARY 10TH, 2021. Is there any switch that will force the output to be fully capitalized?

Hi, and welcome to the forum! :slight_smile:

You can do that like this:

{=upper({time: MMMM Do, YYYY})}

1 Like

Hi Scott, can we capitalize form fields using =upper formula? I am trying to do this but I guess I am missing out something in it.

{=upper({formparagraph: name=ro})}

This is giving me an error. Can you help?

You can do it like this:

{formparagraph: formatter=text -> upper(text)}

1 Like

Thank you Scott. Very helpful. May I also ask, How to capitalize Date field for Form?
{formdate: dddd, MMMM DD, YYYY}

Same way as the paragraph field, add a formatter setting to the {formdate} command which uppercases the output.

1 Like

I am sorry to bother you but I don't think I could achieve that. Am I missing something?
{formdate: formatter=text->upper(text); dddd, MMMM DD, YYYY}

Positional settings should always be before settings with names (e.g. formatter). So you need something like:

{formdate: dddd, MMMM DD, YYYY; formatter=text->upper(text)}

1 Like