Sunday, July 26, 2015

Format `yyyy-MM-dd HH:mm:ss` in Bash

To format `yyyy-MM-dd HH:mm:ss` in Bash,

do as follows:

date +"%F %T"

No comments:

Post a Comment