how to get time from date in typescript code example Example: typescript current date/time let dateTime = new Date()