Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Harold Ramis
Table title:
Acting roles
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Title </th><th colspan=1 rowspan=1 > Role </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <td colspan=1 rowspan=2 > 1981 </td><td colspan=1 rowspan=1 > Stripes </td><td colspan=1 rowspan=1 > Russell Ziskey </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > Heavy Metal </td><td colspan=1 rowspan=1 > Zeke </td><td colspan=1 rowspan=1 > segment "So Beautiful and So Dangerous"; Voice role </td></tr>
<tr> <td colspan=1 rowspan=2 > 1983 </td><td colspan=1 rowspan=1 > Spacehunter: Adventures in the Forbidden Zone </td><td colspan=1 rowspan=1 > Intercom </td><td colspan=1 rowspan=1 > Uncredited; Voice role </td></tr>
<tr> <td colspan=1 rowspan=1 > National Lampoon's Vacation </td><td colspan=1 rowspan=1 > Marty Moose </td><td colspan=1 rowspan=1 > Uncredited; Voice role </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 1984 </td><td class="highlighted"  colspan=1 rowspan=1 > Ghostbusters </td><td class="highlighted"  colspan=1 rowspan=1 > Dr. Egon Spengler </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 1987 </td><td colspan=1 rowspan=1 > Baby Boom </td><td colspan=1 rowspan=1 > Steven Bochner </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 1988 </td><td colspan=1 rowspan=1 > Stealing Home </td><td colspan=1 rowspan=1 > Alan Appleby </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 1989 </td><td class="highlighted"  colspan=1 rowspan=1 > Ghostbusters II </td><td class="highlighted"  colspan=1 rowspan=1 > Dr. Egon Spengler </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 1993 </td><td colspan=1 rowspan=1 > Groundhog Day </td><td colspan=1 rowspan=1 > Neurologist </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=2 > 1994 </td><td colspan=1 rowspan=1 > Airheads </td><td colspan=1 rowspan=1 > Chris Moore </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > Love Affair </td><td colspan=1 rowspan=1 > Sheldon Blumenthal </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 1997 </td><td colspan=1 rowspan=1 > As Good as It Gets </td><td colspan=1 rowspan=1 > Dr. Martin Bettes </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=2 > 2002 </td><td colspan=1 rowspan=1 > Orange County </td><td colspan=1 rowspan=1 > Don Durkett </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > I'm with Lucy </td><td colspan=1 rowspan=1 > Jack </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 2006 </td><td colspan=1 rowspan=1 > The Last Kiss </td><td colspan=1 rowspan=1 > Professor Bowler </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=2 > 2007 </td><td colspan=1 rowspan=1 > Knocked Up </td><td colspan=1 rowspan=1 > Ben's Dad </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > Walk Hard: The Dewey Cox Story </td><td colspan=1 rowspan=1 > L'Chai'm </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 > 2009 </td><td colspan=1 rowspan=1 > Year One </td><td colspan=1 rowspan=1 > Adam </td><td colspan=1 rowspan=1 > Final appearance </td></tr>
</table>
Question:
In what movies did Harold Ramis play Dr. Egon Spengler, and what years did those films come out?
Answer:
In 1984, Ramis acted in Ghostbusters as Dr. Egon Spengler and repeated the role in the 1989 Ghostbusters II.