>>I think you should use code references to search for every place where there is a reference to date(), then see where it would be appropriate to use a User Defined Function instead.
>
>That would be a good idea, but there are serveral hundered thousand lines of code.
>Thanks!
Sure, but a global search - for example, with code references - should quickly give you the few hundred lines, at most, where date() is being used.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)