typeerror gettime is not a function code example Example: date.gettime is not a function let date = new Date(); date.getTime(); // 1618080727055