uncion7
Posts: 5
|
| Posted: 03/08/2008, 2:44 PM |
|
Hello, I'm trying to compare a date in the grid with the current date. I have a field in the database: date_end, but the code not run:
table: documento
field: date_end
If ($documento->date_end->GetValue()==CCParseDate(date("yyyy-m-d"),array("yyyy","-","mm","-","dd"))){
$documento->date_end->SetValue("<b><font color=\"blue\">".
$documento->date_end->GetValue()."</font></b>");
}elseif($documento->date_end->GetValue()>CCParseDate(date("yyyy-m-d"),array("yyyy","-","mm","-","dd"))){
$documento->date_end->SetValue("<b><font color=\"red\">".
$documento->date_end->GetValue()."</font></b>")
}
Please help me.
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 04/08/2008, 11:02 PM |
|
uncion7
Has you found a solution to this?? I am almost sure that there is a solution in the forums.
|
 |
 |
|