VB Script - Disable Fields - Date UDF

I wrote a script to disable and enable certain UDF's based on certain conditions. These UDF's have different data types. when the script runs apart from the Date type UDF all others get disabled and enabled properly. Is there a special syntax to control Date type fields?

Thanks

Nishanth