Hi,
I'm having issue when trying to create a box, via WebService. In particular with the physical attribute, when passing a date.
For out of the box date attributes (fromdate todate), I have no issue passing a date
ie: CWS.DateValue dateFromDate = new CWS.DateValue
{
Key = "poFromDate",
Values = new DateTime?[] { myBox.FromDate }
} // FromDate is a date
This works, no problem
But when using the same date(for testing purposes), to
CWS.DateValue dateDestroyDate = new CWS.DateValue
{
Key = "mtField_Destroy",
Values = new DateTime?[] { myBox.FromDate }
};
Does not work, Content Server throws an error.
I also tried writing this way (same error)
CWS.DateValue dateDestroyDate = new CWS.DateValue();
dateShipDate.Key = "mtField_Destroy";
dateShipDate.Values = new DateTime?[] { DateTime.Now };
This Destroy field, is a date field.
Also, when a field is a string, it works fine:
CWS.StringValue TermTo = new CWS.StringValue();
strValueCmt.Key = "mtField_TermTo";
strValueCmt.Values = new string[] { "10" };
Only dates have an issue for the mtField
Any clues ?
(I tought I'd check here, before opening a ticket...)
Tks