CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Date calculations

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.