Re[2]: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi, Friday, October 7, 2005, 7:55:45 PM, you wrote: > dateexpired is: 1128052800 which translates into: 2005-09-30 00:00:00 > Basically, I'm just trying to figure out when the dateexpired is. IF > it is past the current date then I am erroring out and if it's under > the current date... I'm allo

Re: [PHP] date comparisions...

2005-10-07 Thread aaronjw
Hi Rich, Thanks for your reply. dateexpired is: 1128052800 which translates into: 2005-09-30 00:00:00 Basically, I'm just trying to figure out when the dateexpired is. IF it is past the current date then I am erroring out and if it's under the current date... I'm allowing the transaction. I wou

Re: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi aaronjw, Friday, October 7, 2005, 7:34:11 PM, you wrote: > if ($discountResult["dateexpired"] > date("U")) > { > //dosomething > } > else > { > //do something else > } > Anyway... it's supposed to read: IF the expired date is past the current > date... disallow "dosomething" otherwise

[PHP] date comparisions...

2005-10-07 Thread aaronjw
I am confused... probably because of lack of sleep. Anyway... I have code that looks like this: if ($discountResult["dateexpired"] > date("U")) { //dosomething } else { //do something else } Using Epoch obviously Anyway... it's supposed to read: IF the expired date is past the curre