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