core: added extra options to datetime filter.

(cherry picked from commit e2f86a9b70ccad59bdf23596a84a747db995b182)