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:
German Battalion
Table title:
Service record
Table:
<table id='hittask' contenteditable='False'>
<tr> <td colspan=1 rowspan=1 > Designation </td><td colspan=1 rowspan=1 > Date </td><td colspan=1 rowspan=1 > Brigade </td><td colspan=1 rowspan=1 > Department </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 25 May 1776 </td><td colspan=1 rowspan=1 > none </td><td colspan=1 rowspan=1 > none </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 27 June 1776 </td><td colspan=1 rowspan=1 > none </td><td colspan=1 rowspan=1 > Middle </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 23 September 1776 </td><td colspan=1 rowspan=1 > none </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > German Battalion </td><td class="highlighted"  colspan=1 rowspan=1 > 22 May 1777 </td><td class="highlighted"  colspan=1 rowspan=1 > 2nd Maryland </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > German Battalion </td><td class="highlighted"  colspan=1 rowspan=1 > 24 May 1777 </td><td class="highlighted"  colspan=1 rowspan=1 > 1st Virginia </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 22 July 1778 </td><td colspan=1 rowspan=1 > 2nd Maryland </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 24 November 1778 </td><td colspan=1 rowspan=1 > Hand's </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 8 October 1779 </td><td colspan=1 rowspan=1 > none </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 16 September 1780 </td><td colspan=1 rowspan=1 > New Jersey </td><td colspan=1 rowspan=1 > Main Army </td></tr>
<tr> <td colspan=1 rowspan=1 > German Battalion </td><td colspan=1 rowspan=1 > 1 January 1781 </td><td colspan=1 rowspan=1 > New Jersey </td><td colspan=1 rowspan=1 > disbanded </td></tr>
</table>
Question:
To which brigade was the German Battalion assigned to first and then reassigned to later and which dates did these both events occur on?
Answer:
On the 22nd of May 1777, the German Battalion assigned to the 2nd Maryland Brigade, then reassigned it to the 1st Virginia Brigade two days later.