use db agnostic date check