1

Is there a data type like Timestamp which I can use for Date().getTime()

const currentTime = new Date().getTime();

1
  • 1
    The type returned by Date.getTime is number. Commented Jan 20, 2019 at 16:32

1 Answer 1

1

getTime returns number

timeVar: number = new Date().getTime();
Sign up to request clarification or add additional context in comments.

1 Comment

@DebanjanB can you please try to provide more logical answer to this question? at least please take a look and just try. The only explaination is this!! I totally disagree with you on this manner!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.