I have an excel formula that is very simple and it works because I can restrict the recursive iterations. I am not very script savvy, but this is what it is and it works.>
it's much easier than that! =now
or;
=today
Depending what you need