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