You mean like:
$xwiki.formatDate($doc.date, "HH") - this gives Hour
$xwiki.formatDate($doc.date, "MM") - this gives Month
Etc...
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Mihails
Agafonovs
Sent: 20 June 2008 10:26
To: XWiki Users
Subject: Re: [xwiki-users] XWiki date
No, I mean getting explicitly the year, month etc.
For example,
$doc.someFunction(year) would return only the year
$doc.someFunction(month) would return only the month...
Quoting "Esbach, Brandon" : More or less, yes; You can use
$xwiki.formatDate(<date here>, "<here goes
format>")) where you replace <date here> with a real date,
eg $xwiki.currentDate(see below for document date examples) <here goes
format> with a time format, eg HH:mm:ss dd-MM-yyyy $doc.date for last modified
date $doc.creationDate for creation date of document.
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of Mihails
Agafonovs
Sent: 20 June 2008 09:58
To: users(a)xwiki.org
Subject: [xwiki-users] XWiki date
Hi!
Is it possible to get document creation/modification date, month, year, time explicitly?
Ar cieņu, Mihails
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Ar cieņu, Mihails
Links:
------
[1] mailto:Esbachb@tycoelectronics.com
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users