new function date which returns the Date object given millis as a parameter.