I want to make a Feature Layer for each month in the table "Sightings1995-2014".
Why doesn't it work?
for month in range (01,12): arcpy.MakeFeatureLayer_management("Sightings1995-2014", "test%s" %month,"DATE >= date'01.%s.1995' AND DATE < date'01.%s.2014'" % (month, month+1)
Parsing error SyntaxError: invalid syntax (line 1)
for the output in each year this code worked
for year in range(1995,2014): arcpy.MakeFeatureLayer_management ("Sightings1995-2014", "test%s" % year, "DATE >= date'01.01.%s' AND DATE < date'01.01.%s'" % (year, year+1))