Get yesterdays Date for Input Date

Hi,

I have been trying to get the yesterdays date for the Input date I pass.

I know how to do for the current timestamp but how to do for the input date.

Is there any way I can convert to epoch time and do manipulations and back to human readable date?

Please help

Thanks

Regards

Abhinav

Have a look at this thread suggesting different approaches to perform Date Arithmetic. I hope this will help.