I will need to include a process (function) in a Korn Shell that will receive in a date string with the format:
YYYYMMDD.
I then need to subtract 7, to get the previous weeks date. This is probalbly really easy, but for the life of me, I can't figure out where to start.
I'm thinking the date needs to be converted to a Julian, then subtract 7 and convert back to a string.
My company does not support Perl, so that's out.
Any help would be appreciated!
Thanks
YYYYMMDD.
I then need to subtract 7, to get the previous weeks date. This is probalbly really easy, but for the life of me, I can't figure out where to start.
I'm thinking the date needs to be converted to a Julian, then subtract 7 and convert back to a string.
My company does not support Perl, so that's out.
Any help would be appreciated!
Thanks