borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Useful String Functions)Next Topic (Questions without any attempt at research) New Topic New Poll Post Reply
AndreaVB Forum : Frequently Asked Questions : Date and Time Solved Topic
Poster Message
jaytyah
Level: Trainee

Registered: 17-02-2005
Posts: 2

icon Date and Time

Ive been trying to do a module that would take 2 dates and times as input and give a result of their difference in seconds. Maximum difference would only be 2 days (172,800 secs).

Example:
Input 1: Feb 23, 2005. 11:30 AM
Input 2: Feb 24, 2005. 11:31 AM

Result: 86460 secs.

Ive been trying for 2 days now and im failing miserably.

Could you please help me out with this?

26-02-2005 at 08:01 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Date and Time

DateDiff Function

Here is the explanation of DateDiff function taken from MSDN, you also have a link to example on the top of the page. Since this is a very often question, it will be moved to Frequently asked questions section.

____________________________
If you find the answer helpful, please mark this topic as solved.

26-02-2005 at 12:54 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Frequently Asked Questions : Date and Time Solved Topic
Previous Topic (Useful String Functions)Next Topic (Questions without any attempt at research) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder