Your W-2 does not show the months that you worked. A W-2 only shows the amount you earned during the tax year, whether you earned income all during the year or only during a few months. If you do not know when you worked for the employer---you could ask them.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**