Tip: run a terminal (in my case, a bash terminal)
help is a good starting point
date --help
or man page
man date
A lot of information and examples.
Processing data in bash (copy the example that runs in your terminal):
add 10 days to the current date:
date -d "10 day" +"%Y %m %d"
or delete 10 days before the current date
date -d "-10 day" +"%Y %m %d"
add 2 months to the current date:
date -d "2 month" +"%Y %m %d"
remove 2 months from the current date:
date -d "-2 month" +"%Y %m %d"
1
date -d "1 year" +"%Y %m %d"
1
date -d "-1 year" +"%Y %m %d"
1
date -d "1 year 1 month 1 day" +"%Y %m %d"
script ( bash)
foobaa=`date -d "1 year 1 month 1 day" +"%Y %m %d"`
echo $foobaa
, .