String to Date conversion

Hi,

I have a String say 20131224 which represents a date.

I want to to subtract 1 day from this.

Any idea how can i do this on AIX.

Please search prior to posting....

http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html