Created
July 27, 2023 17:47
-
-
Save VincentVToscano/efbc141b5b864837bdfdfaa89c2d5b9e to your computer and use it in GitHub Desktop.
Convert a Date into XML Schema (ISO 8601) format in bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Convert a Date into XML Schema (ISO 8601) format. | |
#2022-11-06T06:24:46-08:00 | |
date -u +%FT%T%z | |
#2023-03-21T20:40:35+0000 | |
date -u '+%Y-%m-%dT%k:%M:%S%z' | |
#2023-03-21T20:41:13+0000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment