Lets say I have the following list of dates (in date format, not strings)

6/13/2012
7/12/2012
6/18/2012

I want to loop through and if the date contains the month of june and the year 2012, I then want to do something.

What would be the code for this? Many thanks