Results 1 to 2 of 2

Thread: subtract dates with crystal report 8.5

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2003
    Posts
    38

    Unhappy subtract dates with crystal report 8.5

    I need to obtain the diference betwen a field date and a field date that I pass to crystal report. But when I execute the program I receive an error, but when I used currentdate-mydate I don't have problem. the format of field date is correct.


    I need an example please.

  2. #2
    Hyperactive Member VB4fun's Avatar
    Join Date
    May 2003
    Location
    too far from Fiji
    Posts
    342
    not sure I understand....

    diference betwen a field date and a field date that I pass to crystal report

    but if you are trying to find the difference between two dates ON the report, check the following...

    http://www.vbforums.com/showthread.p...hreadid=258020

    where "n" = minutes, "h" = hours, "d" = days, "m" = months

    otherwise, if you are passing the difference itself, to the report, you could use the DateDiff function in Vb..

    http://www.vbforums.com/showthread.p...light=datediff

    Hope that helps
    Talk does not cook rice.
    -Chinese Proverb

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