So, I use pyodbc to take the Date Time field from MS Access, add Python to the list. When I do this, it pyodbc instantly converts the data to this datetime.datetime(2012, 1, 1,0,0)
format. In this case, I am only interested in the year 2012
. How can I analyze the year from my list when it uses this format? Maybe pyodbc has some syntax that I could use before it appears in the list?
source share