Lorem ipsum dolor sit amet, consectetur adipiscing elit. Test link

Search Suggest

calculate two date difference in x days
calculate two date difference in x days

How to calculate two date difference in x days

Subtract two date difference in days olddate=2018-06-19 newdate=2020-04-24 echo $(( ($(date -d $newdate +%s) - $(date -d $olddate +%s)) / 86400 )) da…