get utc without milliseconds javascript code example Example: javascript toisostring without milliseconds console.log( now.toISOString().split('.')[0]+"Z" );