I want to subtract three hours from current time. How can i do that?
Sbtract time from date
Collapse
X
-
Originally posted by AtliThat depends.
Can be as simple as:
[code=php]
$newDate = date("H:i:s", time() - (3600 * 3));
[/code]
If this is not what you need, please explain in greater detail, and show us the code you are using.
Thank you so much.It is working. But i want to subtract from current time with date.
Eg: 2008-05-15 15:03-(3 hours)
Could you please tell me how can i do that?Comment
Comment