Share » Forums » Developer » formatting number

formatting number

formatting number

Friday 08 October 2010 8:07:43 am - 2 replies

Author Message

Lo' F.

Saturday 09 October 2010 6:57:43 am

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

Mike Makris

Tuesday 12 October 2010 6:08:39 am

Thank you. I was actually trying to avoid this. I thought there might be a string formating function which I'm sure I'll need for output.

MikeM

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu