Nope, the code is sound but does'nt return anything, I've tried lots of different variations and razor does'nt return anything, but in code behind I can get the date with mediaItem.CreateDateTime using var mediaItem3 = uQuery.GetMedia(startMedia.Id);
Get media item created date?
All I seem to be able to get is:
@media.Created, @media.date, @media.createDate, @media.created don't seem to work?
neither does media.GetProperty("created").Value.ToString(); or with any of the above variations.
I'm on 4.9, any ideas?
Thanks, Pete
Can you try this :
I just did this from memory so the code can contain errors
Nope, the code is sound but does'nt return anything, I've tried lots of different variations and razor does'nt return anything, but in code behind I can get the date with mediaItem.CreateDateTime using var mediaItem3 = uQuery.GetMedia(startMedia.Id);
You can use the uQuery code in Razor too so that should solve your problem.
I tried this with uQuery, it loads but does'nt return anything?
is working on a reply...