IsetDateAttribute()

Sets an attribute to a date value.

Syntax

void IsetDateAttribute(string attributeName, string value);

Parameters

attributeName
The name of the attribute whose value is set.

value
The date value for the attribute, in a string format.

Return Values

None.

Exceptions

IInvalidAttributeTypeException
Thrown when the attribute is not a date.

IInvalidAttributeNameException
Thrown when the attribute name is invalid.

Example

// Call the set Date attribute method
String dateAttribute = "DateofBirth";
String dateValue = "11/18/1966";
exampleBusObj.IsetDateAttribute(dateAttribute, dateValue);

Copyright IBM Corp. 2004