for example , below example is simple. DATE=$(date -v-7d ) echo $DATE
but how to calculate
2019-02-28 00:00:00 - or + 01:30:00 # date&time - or + time
or
2019-02-28 00:00:00 - or + 2019-02-20 13:30:35 # date&time - or + date&time
thanks
date; date --date="5 hours ago 55 minutes ago 40 seconds ago " +%H%M-%d%m%Y
In this way you can add or subtract from the current time