Date function javascript

Get css correct