Is there a common knowledge pattern or idiom to solve the problem that code that uses new Date() is extremely hard to unit-test?
I know a possible solution (e.g. http://refactoringaspnet.blogspot.com/2010/02/unit-testing-code-which-is-dependent-on.html), but the question is whether there is a common pattern and language for this problem.