This technique is totally fine and very explicit, but I did find this one: `date.toISOString().replace(/T[\d:\.]+Z$/, '')` which is a one-liner.