use faster datetime search rather than datetime strings