This article introduces methods to customize the date output format in the Bash command line and format it to commonly used ISO standard-compliant formats. For example, below we output an ISO8601 timestamp with date in Bash.
date +%FT%T%Z
Other useful formats
ISO8601 .. date --utc +%FT%TZ
ISO8601 .. date --utc +%FT%T.%3NZ
ISO8601 .. date +%FT%T%Z
Most common Bash date commands for timestamping « The Intellectual Wilderness