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 -> Español

 Operacion con Fechas

Print topic Send  topic

Author Message
uncion7

Posts: 5
Posted: 03/07/2008, 8:17 PM

Hola, estoy tratando de comparar una fecha con el dia de hoy. Es decir tengo un campo en una base de datos que se llama plazo. Estoy tratando de comparar en la grilla lo siguiente:

If ($documento->plazo->GetValue()==CCParseDate(date("yyyy-m-d"),array("yyyy","-","mm","-","dd"))){
$documento->plazo->SetValue("<b><font color=\"blue\">".
$documento->plazo->GetValue()."</font></b>");
}elseif($documento->plazo->GetValue()>CCParseDate(date("yyyy-m-d"),array("yyyy","-","mm","-","dd"))){
$documento->plazo->SetValue("<b><font color=\"red\">".
$documento->plazo->GetValue()."</font></b>")
}


He probado con distintas funciones incluyendo strtotime pero no me funciona con nada.
Gracias por la ayuda

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.