Hello Dumitru

Nice idea, now it works perfectly.

THanks a lot


Cordialement

Stéphane Lassire
Chargé de l'informatique et de la communication
Tél direct : 01 42 85 81 87
Courriel : [email protected]



Marius Dumitru Florea <[email protected]> 
Envoyé par : "users" <[email protected]>
06/01/2014 14:10
Veuillez répondre à
XWiki Users <[email protected]>


A
XWiki Users <[email protected]>
cc

Objet
Re: [xwiki-users] getMonth() and January ?






On Mon, Jan 6, 2014 at 2:16 PM, Stéphane LASSIRE <[email protected]> 
wrote:
> Hello,
>
> I put a new field in the user page to see the last login of each for
> statistics purposes.
> On november and december last year it rans perfectly.
>
> But on january, the month is only on 1 letter !
>
> The macro :
> {{velocity}}
>

> #set($date_ll = $datetool.getYear()+ '/' + $datetool.getMonth() + '/' +
> $datetool.getDay())

This is better and safer:

#set($date_ll = $datetool.get('yyyy/MM/dd'))

Hope this helps,
Marius


users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to