typescript, type for date object code example Example: types date typescript const date: Date = new Date();