Hi,
This is very strange (without a backtrace of the error) as to why this particular function is called on printing the form initially.
I can surely see the error occurring but can't figure out why just looking at the code. Matrix is getting unexpected value where the error is being raised from.
Is the settings on the DateTime Question filed set up properly? (may be a screen shot of what it looks like?)
If the issue is critical and if you are Squiz Client then I'd say raise a support ticket for someone in Squiz to have a look at it and resolve the issue asap.
Hi,
I gave it a try with the settings you provided but it is not doing anything funny. what is still strange is execution path reach the functions (which is causing error) on the first form load.
There is surely something funny going on. And it is very difficult to determine without debugging.
Sorry for not being of much help here but I reckon this is farthest I help.