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 preceeding that date and have it be returned in in the format yyyymmdd.
Let me give you an example. When X="091509" (mmddyy format) Y should be "20090914" (yyyymmdd format)