Illegal Operation error when using date functions in siebel vb
Hi,
We are facing the issue with siebel vb code when using date functions, code is as below. Also, this issue is happening in QA, where as the same is working fine in Prod, so we are suspecting some kind of local settings while retrieving date is causing the issue and same has been mentioned in Scripting Code That Manipulates Dates is Leading To "Type mismatch(SBL-SCR-00156)" Errors. (Doc ID 552021.1), but we need some detailed explanation on the cause and solution section, so kindly explain in detail.
sActCreated =.GetFormattedFieldValue("Created")
sSRCreated =.GetFormattedFieldValue("Created")
dx = DateValue(sSRCreated)
'TheApplication.RaiseErrorText(dx)
dy = DateValue(sActCreated)