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 -> ASP

 How to get diff in days

Print topic Send  topic

Author Message
tulnetdotcom

Posts: 26
Posted: 09/14/2004, 3:47 AM

I have database for assets.
the fields are : srno, assetno. reporteddate, attendeddate, status

How do i get diff in days between reportdate and currentdate?
At the same time it should update the field status.


Thanks
View profile  Send private message
marcwolf


Posts: 361
Posted: 09/14/2004, 4:56 PM

What database are you using.

There are a number of ways to do this and several DB engines have built in Date calulation routines.

Alternatively - you can use pure ASP/VBScript and perform a DateDiff on the two values, and depending on the result update the Field Status

Hope this helps.

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
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.