Forums / Developer / formatting number / Comment62458

Author Topic

Lo' F.

Saturday 09 October 2010 6:57:43 am

Comment62458

What about something like this?

<select>
  {for 1 to 31 as $num}
  {if $num|lt(10)}
    <option>{concat('0', $num)}</option>  
  {else}    
    <option>{$num}</option>  
  {/if}
{/for}
</select>

loredanaebook.it