get all nodes created in a specific month
Here you go with the code.. I have used entity field query to retrieve results.. Code should be self explanatory..  Let me know if you have any difficulty in understanding below code..

&lt;?php

$year_month = "2014-04";
$date = date_parse_from_format ("Y-m" ,  $year_month);
$num = cal_days_in_month(CAL_GREGORIAN, $date['month'], $date['year']);
$first_minute = mktime(0, 0, 0, $date['month'], 1, $date['year']);
$last_minute = mktime(23, 59, 59, $date['month'], $num, $date['year']);
$entity_type = 'node';
$efq = new EntityFieldQuery();
$efq-&gt;entityCondition('entity_type', $entity_type);
$efq-&gt;propertyCondition('created', array($first_minute, $last_minute), 'BETWEEN');
$result = $efq-&gt;execute();  
dpm($result);

?&gt;