On a block, you can set the start publish date.
Now I want to programmatically fetch that date, to see if I shall render it or not.
But I can not find it...
Any ideas?
I think I must be missing something real simple and obvious here, but I am totally lost
/Fredrik
Hi Fredrik ;) See this blog post from Johan Björnfot: http://world.episerver.com/Blogs/Johan-Bjornfot/Dates1/2012/11/Shared-blocks--IContent/
In you case you need to cast the block to IVersionable.
Thanks Erik, works like a charm!
On a block, you can set the start publish date.
Now I want to programmatically fetch that date, to see if I shall render it or not.
But I can not find it...
Any ideas?
I think I must be missing something real simple and obvious here, but I am totally lost
/Fredrik