js date split z and t code example Example: javascript toisostring without milliseconds console.log( now.toISOString().split('.')[0]+"Z" );