Changes to make existing functions work with a DateTime model instead of month and year variables.