currentyear=$(date +%Y) currentyearmonth=$(date +%Y-%m) currentyearmonthday=$(date +%Y-%m-%d) echo $currentyear echo $currentyearmonth echo $currentyearmonthday