I'm working on a simple event sign up module. The functionality is split in two modules, one which provides an Event content type with title, description and date (from - to) fields, and the second with sign up functionality and sign up window dates for Event content type. The problem is that I don't seem to find a way to properly parse and do comparisons and calculations on the event/signup dates.
Date API documention is quite light on specifics on this area, so it has not been much of a help.
- How can I use the Date API to obtain DateObject from the event date stored on the node?
- How can I determine whether the stored event is an all day event?