toufik toufik a écrit le 27/02/2004 :[color=blue]
> Hi,
> Are there operator for dates, I need a stuff like this
> dateX = today - x days
>
> Thanks[/color]
If in database, use SQL statements otherwise see manual for date() and
mktime() functions.
Try this: DATE_ADD(now(), INTERVAL-5 MINUTE) (if you wanna to have it
in a mysql query!)
Pedro Graca <hexkid@hotpop. com> wrote in message news:<c1m4vb$1j qu7u$3@ID-203069.news.uni-berlin.de>...[color=blue]
> toufik toufik wrote:[color=green]
> > Are there operator for dates, I need a stuff like this
> > dateX = today - x days[/color]
>
> if today (shouldn't it be $today?) is a Unix timestamp, do
>
> $dateX = $today - $x * (24*60*60);[/color]
"toufik toufik" <toufiki@sympat ico.ca> wrote in message news:<m8v%b.156 49$Mo4.549099@n ews20.bellgloba l.com>...[color=blue]
> Hi,
> Are there operator for dates, I need a stuff like this
> dateX = today - x days[/color]
Comment