cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "beyanet.com" <beya_n...@yahoo.co.uk>
Subject Re: Getting current date in Cocoon
Date Tue, 26 Apr 2005 18:22:42 GMT
>I'm trying to get the current date to compare against a Dublin core meta tag
>value. I can do this with JavaScript and PHP, but I would like to do this in
>Cocoon. Is there any way to get the current date in Cocoon and use it to
>compare against an element attribute value. I know enough about XSP, XSLT,
>etc to do the comparison. I just need to know if I can get the current date.

Gary,
in your XSP do:

Date newDate = new Date();

in your flowscript do:

var newDate = new Date();

So in reply to yourr question, the answer is yes ;-)

regards

beya

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message