added spec for datetime with format