typescript create date now object code example Example: typescript current date/time let dateTime = new Date()