I'm looking at using the CMS Calendar and event booking system to put a little "Important Dates" gadget on my intranet. I'm not looking for users to book events, I'm simply looking to post dates to remind them. (eg. Oct 31: Hallowe'en, Aug 4: Company Picnic, etc.).
I've been copying the calendar from the corp site example. I don't want the whole calendar, just the events summary. Here's my transform:
<%# GetEventDateString(FormatDateTime(Eval("EventDate"), "MMM d"),FormatDateTime(Eval("EventEndDate"), "MMM d"),Eval<bool>("EventAllDay")) %>
<a href="<%# GetDocumentUrl() %>">
<%# Eval("EventName", true) %>
I'm having trouble with a couple of things, in decreasing order of need:
- formatting the date string to MMM d. I don't find any documentation on GetEventDateString(). The FormatDateTime I have above is just ignored, and it displays the standard
M/dd/yyyy hh:mm AP
- I'd like to page the events, so that I only see one month at a time, with a ' < ThisMonth > ' nav bar to go back and forth just like an actual calendar has.
- not sure what to do with the EventEndDate and AllDay fields... maybe leave them out. Maybe leave Time out too.
(Wow, that bold is really bold...)