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