Bash command line date output format

Customize Date Output Format in Bash Command Line

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. <pre><code>date +%FT%T…

Shou Arisaka
1 min read
Oct 15, 2025

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

Share this article

Shou Arisaka Oct 15, 2025

🔗 Copy Links