<br>I have a set of pages with a couple of  page text variables  (PTVs) on them of the form yyyy-mm-dd . <br>I need to grab  year , month and day values from them to display in another page. <br><br>I  have a page Test.0001 with  (:date:2009-02-15:)<br>

<br>So if I point the browser to Main.Test?page=0001 (using httpvariables) and then write  {Test.{$?page}$:date} on it I get <b>2009-02-15</b> (working)<br><br>then I try {(substr  {Test.{$?page}$:date} 0 4)} and I get    <b>{Dec            </b>it breaks somehow ,  I was expecting to get 2009<b>.<br>

<br></b>Any pointers on how to make substr markup work the way I&#39;m doing it ? Any reason why it breaks ?<br><br>Best Regards,<br>Edwin<br>