If you get "2019 1"(including blank at the front of month), you will be able to use replaceAll method.
I run below gel script.
----------------------------------
<gel:script
xmlns:core="jelly:core"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
<core:set var="year1" value="2019"/>
<core:set var="month1" value=" 1"/>
<core:set var="result1" value="${year1}${month1}"/>
<gel:out>date is ${result1}</gel:out>
</gel:script>
----------------------------------
It returns below.
>date is 2019 1
I added replaceAll method like as below.
---------------------------------
<gel:script
xmlns:core="jelly:core"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
<core:set var="year1" value="2019"/>
<core:set var="month1" value=" 1"/>
<core:set var="result1" value="${year1}${month1}"/>
<gel:out>date is ${result1}</gel:out>
<core:set var="result2" value="${result1.replaceAll(' ', '0')}"/>
<gel:out>date is ${result2}</gel:out>
</gel:script>
---------------------------------
It returns below.
>date is 2019 1
>date is 201901
If you get month as 1 number character, you will need to check length.
For example, you get January as 1, not 01.
If length is 1, then you need to concat "0" string at front of month.
<gel:script
xmlns:core="jelly:core"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
<core:set var="year1" value="2019"/>
<core:set var="month1" value="1"/>
<gel:out>month is ${month1}</gel:out>
<gel:out>date is ${year1}${month1}</gel:out>
<core:set var="length1" value="${month1.length()}"/>
<gel:out>length is ${length1}</gel:out>
<core:if test="${length1==1}">
<core:set var="zero1" value="0"/>
<core:set var="month1" value="${zero1.concat(month1)}"/>
</core:if>
<gel:out>date is ${year1}${month1}</gel:out>
</gel:script>
It returns below.
>month is 1
>date is 20191
>length is 1
>date is 201901
Regards,
Shoichi