s novell wrote:

>
> I guess the time token only works if you know the exact source date
> format. But in mycase, source date format would be any of following...
> 01/01/2012
> 1/01/2012
> 01/1/2012
> 1/1/2012
> 01/01/12
> 1/1/12
>
> my desired output from any of above should be 01/01/2012.


Then it would be

<do-reformat-op-attr name="SomeDateFormat">
<arg-value type="string">
<token-replace-all regex="^0?(\d)/0?(\d)/(\d{2})?(\d{2})$"
replace-with="$1/$2/$3$4">
<token-local-variable name="current-value"/>
</token-replace-all>
</arg-value>
</do-reformat-op-attr>

--