# Print today date in yyyyMMdd format. function today() { date +%Y%m%d } # Current day of week number. function dow() { date +%u }