Need Help on DTPicker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siyoyok007
    New Member
    • Feb 2007
    • 18

    Need Help on DTPicker

    Hello,
    I'm developing simple system, that needs the use of DTPicker. For my system, i have placed two dtpicker, which means DTPicker1 and DTPicker2. The DTPicker1 will be used as starting date and DTPicker2 as the end date. How can i calculate the duration between these two DTPicker?... help me please..
    Thnx
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by siyoyok007
    ... How can i calculate the duration between these two DTPicker?... help me please..
    Code:
    Dim Days As Long
    Days = DateDiff("d", DTPicker1, DTPicker2)

    Comment

    • siyoyok007
      New Member
      • Feb 2007
      • 18

      #3
      Originally posted by Killer42
      Code:
      Dim Days As Long
      Days = DateDiff("d", DTPicker1, DTPicker2)
      thnx, now i know how to do it :)

      Comment

      Working...