added datetime assertion