[ic] [perl]

Ton Verhagen interchange-users@lists.akopia.com
Fri Jun 8 04:04:02 2001


Yann,

I guess you're looking for the convert-date tag.

Try this:

[convert-date fmt="%d/%m/%Y"]20010518[/convert-date]

This will display: 18/05/2001

All the best,

Ton

At 11:07 AM 6/6/01 +0100, you wrote:
>I want to display this date 20010701 in this format 01/07/001
>why this doesn't work?
>
>[perl]
>
>$data=[item-field noticia_dataactivacao];
>
>$ano = substr($data, 0, 4);
>$mez = substr($data, 4, 2);
>$dia = substr($data, 6, 2);
>
>return $ano;
>return "/";
>return $mez;
>return "/";
>return $dia;
>
>[/perl]
>
>Yann carlier
>+351-21-4527104/5
><http://www.inteliware.net>www.inteliware.net
><mailto:yann.carlier@inteliware.net>yann.carlier@inteliware.net