Fix date functions

Removed reliance on date() SQL function in Reminder.grouped_reminders() and chart_data() methods to work on SQL Server 08