by the way,
when i tried all the attributes together, the category is not assigned to the document, so i just changed the attribute values type to LAPI_ATTRIBUTES.ATTR_TYPE_DATE for the date attribute,
now the category is assigned to the document, but the date attribute is not taking any values!