23 Mar
2010
23 Mar
'10
1:59 p.m.
On 03/20/2010 04:12 PM, Gerritjan Koekkoek wrote:
Hi,
def vPublishDate = "2008/10/28 12:00:00" vObjArticle.set("publishDate",vPublishDate)
But when I look at the page it shows 31/03/0034 12:00:00
Any explanation how to handle dates with groovy for xwiki?
The format of the string that you're pushing is not the same as the one expected by the property. If you prefer yyyy/MM/dd HH:mm:ss, then you should put this format also in the class. If not, then write the date in the expected format: 28/10/2008 12:00:00 -- Sergiu Dumitriu http://purl.org/net/sergiu/