Skip to content
Prev 169119 / 398506 Next

How to subtract 2 days from a variable storing particular date

Dear R- Exerts,
Seek your help.

Suppose I have a variable "X" that stores a date: "2008-12-15 CET"
Now, I want to subtract 2 days (better two working days)  from value stored
in "X".
Please let me know how to do so.

Another variable "Y" stores timestamp as: 2008-11-28 00:09:00
I want to subtract 2 days from "Y".
How to perfrm this subtraction?

Thank you in advance.

Regards,
Suresh