Can you create uppercase or dynamic text?

3657
5
Jump to solution
02-09-2011 01:36 PM
TomMagdaleno
Regular 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
Occasional Contributor III

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

5 Replies
NelsonDe_Miranda
Occasional Contributor III
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
Regular 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
Occasional Contributor III
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
Regular Contributor
Thanks Cartographer, that did it!
0 Kudos
JustinOdell
Occasional Contributor III

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>