Date filtering and formatting utility inspired by jq