date and time subtractions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • change
    New Member
    • Dec 2007
    • 26

    date and time subtractions

    hi have two fields 1)assigned date and time 2)closed date and time and im looking to find the difference between the 2 fields ie datedifference and time difference what ive done is convert the both times to 24hr and am now trying to subtract them
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    So...? You are not getting proper results..?
    Can you post your code here...?

    Regards
    Veena

    Comment

    • VBWheaties
      New Member
      • Feb 2008
      • 145

      #3
      Originally posted by change
      hi have two fields 1)assigned date and time 2)closed date and time and im looking to find the difference between the 2 fields ie datedifference and time difference what ive done is convert the both times to 24hr and am now trying to subtract them
      Use the DateDiff function:
      DateDiff(interv al,date1,date2[,firstdayofweek[,firstweekofyea r]])

      More detail here:

      Comment

      Working...