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.