move date/time querying to Utils