Date function javascript

update merged data