How can you get the current date in YYYYMMDD
formate in a Atlassian Bamboo
script?
If it's in bash, it's:
$ date +Y%m%d
20140815
If you want that in a variable, these ways are essentially equivalent:
DATE=`date +%Y%m%d`
DATE=$(date +%Y%m%d)