How do I express a date type in TypeScript?

How do I express dates in TypeScript? Dates aren’t a TypeScript type, so do I use any or object? Seems like there would be a “right” way to do:

let myDate: any = new Date();

I couldn’t find much on Google, despite it being such a simple question.

4 Answers
4

Leave a Comment