Date function javascript

Trying to make sure that I am in sync with group master