I think what you are referring to is the date used for delayed publish, unfortunately it isn't available in xslt, since only published content goes in the umbraco cached xml.
So, since your document isn't published yet, it won't be available from xslt.
Or, perhaps you just need to create your own releaseDate property on the document type as PeterD suggests. I do this when importing content from an existing site that needs to keep the "original" or "official" date.
Here are two forum threads that discuss that approach:
[url]http://forum.umbraco.org/yafpostst4149Changing-createDate-manually.aspx[/url]
How to get releaseDate of a content?
Who can help me?
Umbraco keeps two different dates for every node.. the date it was created and the date it was last updated.
You can get these in xslt with:
[code]Current page was created on:
Current page was last updated on: [/code]
You can format the date using the various built-in umbraco.library functions, such as those shown at http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/FormatDateTime
cheers,
doug.
I just want to get releaseDate neither createDate nor updateDate.
Umbraco does NOT have a property called 'releaseDate'. The dates it does have are mentioned by Douglas (createDate and updateDate).
You probably would have to create your own property called 'releaseDate'
HTH,
PeterD
I think what you are referring to is the date used for delayed publish, unfortunately it isn't available in xslt, since only published content goes in the umbraco cached xml.
So, since your document isn't published yet, it won't be available from xslt.
Or, perhaps you just need to create your own releaseDate property on the document type as PeterD suggests. I do this when importing content from an existing site that needs to keep the "original" or "official" date.
Here are two forum threads that discuss that approach:
[url]http://forum.umbraco.org/yafpostst4149Changing-createDate-manually.aspx[/url]
[url]http://forum.umbraco.org/yafpostst4613Using-the-documentservice--not-possible-to-set-createDate.aspx[/url]
cheers,
doug.
Just had this problem myself. Rather than resorting to my own field, I used a helper method:
I know this thread is a year old, but I hope it helps somebody down the line.
Benjamin
Thanks Benjamin for the neat and working function!
In addition you need the...
...assembly to use Document in your C# class.
It's in the cms.dll
is working on a reply...