I have two variables: X and Y.
The value of X will be a date given in the format mmddyy and I want to calculate the date preceding that date
date -d "yesterday"