If you are in the model of a paragraph you can get the activation/deactivation
date as follows:
[code]
//info.magnolia.cms.core.MetaData#getLastActionDate
//Part of metadata, get last activated/de- date of the current node.
Calendar cal = content.getMetaData().getModificationDate();
SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
String formattedDate = df.format(cal.getTime());
[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6371e2ee-5a74-4b37-9c68-d619123a5a4b
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------