Revert "removed date.js dependency"

This reverts commit 6f1364f7a33cd6a227bcb057febe70238082eceb.