We have a calendar in our web application. Events can be added to the calendar, and events will have some start date and end date.
Events can also have a reminder. So, while adding an event, if a user decides to he notified of the event by a reminder email, the user can set the reminder value in the event. Similar to what we have in Outlook.
For example, Event Name: Weekly Meeting
Start date: 1st March, 10 AM
Reminder: 1 hour (it can be 15min, 30 min, 1 hr, 2 hr, 1 day, 2 day, etc).
So, in this case an email should be sent to the user before the event, that is, 1 hour before.
An event table in the database has event name, start date, reminder.
How do I implement this in Java?