Sql Extract Year From Datetime Python Format