using moment js change only time from UTC code example Example: convert moment date to utc format moment moment(timestamp).toISOString(true)