apj 0 Newbie Poster

I now currently using aptana studio to create a mobile widget. I have created a event calendar. On click on a date, the event details will be display. the event details is currently stored in a list array. Now I would like to create a reminder function. For example, two days before the events, it will prompt the user that in two days time, it will be what events. Is there any script for me to have this reminder function ? Thanks