Results 1 to 3 of 3

Thread: Problem on Getting Time Duration from Listview

  1. #1

    Thread Starter
    Registered User kadgueco's Avatar
    Join Date
    Jul 2014
    Posts
    10

    Unhappy Problem on Getting Time Duration from Listview

    HI Guys,

    I need some help here

    Name:  2.jpg
Views: 208
Size:  18.3 KB

    I have a listview and i need to get the duration depending on the result.


    I really need to solve it.

    Thanks,

    k

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Problem on Getting Time Duration from Listview

    Are you saying, without actually saying, that you need to subtract one date/time from the other date/time for each item? If so then you would obviously start with a loop; probably a For Each loop. You can then use Date.Parse and TimeSpan.Parse to to convert the Text of the appropriate subitems to Dates and TimeSpans respectively. You can then add each TimeSpan to the corresponding Date and subtract one result from the other. That will give you another TimeSpan that represents the difference. Do with that what you will.

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Problem on Getting Time Duration from Listview

    The heck? How is this different from your original thread?
    http://www.vbforums.com/showthread.p...w-using-vb-net

    And depending on what result?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width