Select to view content in your preferred language

Can you create uppercase or dynamic text?

5829
6
Jump to solution
02-09-2011 01:36 PM
TomMagdaleno
Frequent Contributor
I want to display "MONTH YEAR" so I used this dynamic text <dyn type="date" format="MMMM"/> <dyn type="date" format="yyy"/>, but the Month has first letter capitalized, the rest lowercase.  How do I change them to all uppercase?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JustinOdell
Frequent Contributor

The easiest way to do this is by using the <ACP> </ACP> (All Capitals) tag.

e.g. <ACP><dyn type="date" format="MMMM"/> <dyn type="date" format="yyy"/></ACP>

View solution in original post

6 Replies
NelsonDe_Miranda
Frequent Contributor
If you're using VBScript - UCASE(String)
If you're using Python - str.UPPER(String)

Replace string with the code of the dynamic retrieval of the month.
0 Kudos
TomMagdaleno
Frequent Contributor
Thanks for the reply.  More specificially how do I format it to still work with dynamic text? 

I tried:

str.UPPER(<dyn type= "date" format="MMMM"/> <dyn type="date" format="yyy"/>)

I get:
str.UPPER(February2011)
0 Kudos
NelsonDe_Miranda
Frequent Contributor
What you could do, although I haven't tested it is dump the dynamic text for month into a variable and then modify the variable at output.

ie. month = <dyn type= "date" format="MMMM"/>

str.UPPER(month)
0 Kudos
TomMagdaleno
Frequent Contributor
Thanks Cartographer, that did it!
0 Kudos
JustinOdell
Frequent Contributor

The easiest way to do this is by using the <ACP> </ACP> (All Capitals) tag.

e.g. <ACP><dyn type="date" format="MMMM"/> <dyn type="date" format="yyy"/></ACP>

DAVIDWADSWORTH_LVVWD
Occasional Contributor

Many thanks. Exactly what I was looking for. Thanks for sharing.

0 Kudos