printf $(date +%F) prints 2012-07-14, according to YYYY-MM-DD format date in shell script. But, how do I print 2012-07-14T16:39:57-08:00, according to HTML5 datetime?
printf $(date +%F) prints 2012-07-14 , according to YYYY-MM-DD format date in shell script
Share
I’m not sure how to get the colon in the time zone offset without using string manipulation.