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 : slassire(a)cesap.asso.fr
Marius Dumitru Florea <mariusdumitru.florea(a)xwiki.com>
Envoyé par : "users" <users-bounces(a)xwiki.org>
06/01/2014 14:10
Veuillez répondre à
XWiki Users <users(a)xwiki.org>
A
XWiki Users <users(a)xwiki.org>
cc
Objet
Re: [xwiki-users] getMonth() and January ?
On Mon, Jan 6, 2014 at 2:16 PM, Stéphane LASSIRE <slassire(a)cesap.asso.fr>
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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users