typescriptset a date from the currrent time code example Example: typescript current date/time let dateTime = new Date()