If you would like to set date to an empty value use empty string for that MxObject.setAttribute("dateAttr","").
Setting attribute value to "null" is not recommended since "null" values are used to determinate if attribute was ever filled or not.
What do you mean by an empty date? Date is a primitive, like a boolean, and should never be empty. If you need something like a 'empty date' you might just use Epoch (01/01/1970) for that.