04pallav
9/13/2017 - 9:52 PM

get year from datetime

get year from datetime

year(battles.date)

filter datetime

where date< '2001-04-13'   # here date is a datetime object