My database doesn't support most of the functions above however I found that this works:
SELECT * FROM table WHERE SUBSTR(datetime_column, starting_position, number_of_strings)=required_year_and_month;
for example:
SELECT SUBSTR(created, 1,7) FROM table;
returns the year and month in the format "yyyy-mm"