Welcome Guest, Not a member yet? Register   Sign In
subtract from date.
#1

[eluser]snortop[/eluser]
Thise problem really anoy me.

Im trying to subtract 6 month from current date.
But it keep telling me errors.

Code:
$this->db->where('timestamp <', DATE_SUB(now() , INTERVAL 6 month));

timestamp = timestamp

anyone have a working code or where i can figur out have to do these.


Messages In This Thread
subtract from date. - by El Forum - 09-28-2010, 07:01 AM
subtract from date. - by El Forum - 09-28-2010, 07:06 AM
subtract from date. - by El Forum - 09-28-2010, 07:10 AM
subtract from date. - by El Forum - 09-28-2010, 07:12 AM
subtract from date. - by El Forum - 09-28-2010, 07:26 AM
subtract from date. - by El Forum - 09-28-2010, 07:34 AM
subtract from date. - by El Forum - 09-28-2010, 07:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB