Try
value: msg.dateTime.slice(0,-5)
if the timestamp is a string. String.prototype.slice() - JavaScript | MDN
You could also use substring() or substr()
Otherwise you will need to convert the time object to a string using toISOString() Date - JavaScript | MDN