score:0

Accepted answer
let localDate1=(moment(processItem.beginTime).add(-offset/60,'h').toJSON());
return(
 <p>{localDate1}</p> /*display the 2019-09-18T16:02:00.00*/
)

score:1

const offset = moment(new Date()).utcOffset()
const str = moment(processItem.beginTime).add(offset, 'minutes')
const result = moment(str).format()//iso yyyy-MM-ddThh:mm:ss
console.log(result)

Related Query

More Query from same tag