CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 field calc using PHP

Print topic Send  topic

Author Message
Roger
Posted: 05/14/2002, 10:20 AM

Any idea how to subtract a date field from another and put the result in a
3rd field.
I am using PHP+template.

----------------------------------------------
Rgds
Roger


Alexey Alexapolsky
Posted: 05/15/2002, 2:28 AM

Convert the strings into timestamps, subtract the timestamps and convert it
back to a string.

http://www.php.net/manual/en/ref.datetime.php



--
Alex
CodeCharge Developer


"Roger" <rtng@web4u.com.sg> wrote in message
news:abrh0v$fgt$1@news.codecharge.com...
> Any idea how to subtract a date field from another and put the result in a
> 3rd field.
> I am using PHP+template.
>
> ----------------------------------------------
> Rgds
> Roger
>
>
>


   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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