Compare dates
Posted: Wed Oct 02, 2002 4:55 pm
Hi,
I have 1 or 2 dates... I must compare to now...
the dates are taken from my bd (type DATE) ... How compare them ?
id like to do
if (!$date2) {
if ($date1 == date("Y-m-d")) {
.......
}
} else {
if (date("Y-m-d") between $date1 and $date2)) {
.......
}
}
}
}
I have 1 or 2 dates... I must compare to now...
the dates are taken from my bd (type DATE) ... How compare them ?
id like to do
if (!$date2) {
if ($date1 == date("Y-m-d")) {
.......
}
} else {
if (date("Y-m-d") between $date1 and $date2)) {
.......
}
}
}
}