Calculation of Start and Stop Time in mins and show that on datagrid

Posted on 2007-07-30
Last Modified: 2013-11-26
Hi all,

I am using VB2005 and currently I would like to check the date from a datagrid on my form. If the Date = Now then check the StartTime. If the StartTime=Now then do something. When it comes to the StopTime then stop the procedure. Additionally, I would like to count the mins from StartTime and StopTime. The mins will be shown after the calculation of the datagrid. Can you please provide me with coding the answer?  
Question by:ls3ag
    1 Comment
    LVL 96

    Accepted Solution

    Dim minutes As Integer = StopTime.Subtract(StopTime).TotalMinutes


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This is an explanation of a simple data model to help parse a JSON feed
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now