Make sure createdate is a date property before treating it as one.