Create a list of nodes based on a datepart of CreateDate

Hi Guys, doe’s any one know how to achieve the following.

Using another post I have managed to create an archive of unique months and years from a list of articles.

However I don’t know how to write the razor query to list the headlines based on what month/year I am at.

In codeified english it would look like this.

foreach( var article in nodes.Where( THE YEAR PART OF CreateDate IS EQUAL TO yearVariable AND MONTH PART OF CreateDate IS EQUAL TO THE monthVariable) )
{

Headline

}

Could anyone help with with the code needed to list the articles based on a given year month of createdate.

Kind Regards

Doogie


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/74514-create-a-list-of-nodes-based-on-a-datepart-of-createdate