[ic] [perl]

interchange-users@lists.akopia.com interchange-users@lists.akopia.com
Wed Jun 6 18:03:00 2001


This is a multi-part message in MIME format.

------=_NextPart_000_00BF_01C0EE78.E3BA7DB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I want to display this date 20010701 in this format 01/07/001
why this doesn't work?

[perl]
 =20
$data=3D[item-field noticia_dataactivacao];
 =20
$ano =3D substr($data, 0, 4);
$mez =3D substr($data, 4, 2);
$dia =3D substr($data, 6, 2);

return $ano;
return "/";
return $mez;
return "/";
return $dia;

[/perl]

Yann carlier
+351-21-4527104/5
www.inteliware.net
yann.carlier@inteliware.net=20

------=_NextPart_000_00BF_01C0EE78.E3BA7DB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>I want to display this date 20010701 in =
this format=20
01/07/001</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>why this doesn't work?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>[perl]<BR>&nbsp;&nbsp;<BR>$data=3D[item-field=20
noticia_dataactivacao];<BR>&nbsp;&nbsp;<BR>$ano =3D substr($data, 0, =
4);<BR>$mez =3D=20
substr($data, 4, 2);<BR>$dia =3D substr($data, 6, 2);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>return $ano;<BR>return "/";<BR>return=20
$mez;<BR>return "/";<BR>return $dia;</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2><BR>[/perl]</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>Yann =
carlier<BR>+351-21-4527104/5<BR><A=20
href=3D"http://www.inteliware.net">www.inteliware.net</A><BR><A=20
href=3D"mailto:yann.carlier@inteliware.net">yann.carlier@inteliware.net</=
A>=20
</FONT></DIV></BODY></HTML>

------=_NextPart_000_00BF_01C0EE78.E3BA7DB0--