how to convert date time into utc format in angular code example Example: how to get utc time in angular var d = new Date(); var n = d.getUTCDate();