typescript represent date with number code example Example: types date typescript const date: Date = new Date();