VB3.0 Pro

I can't get DateDiff to work correctly.

Here is the coding:

Dim MVal, DayN, DayDiff

MVal = "1/1/01"

DayN = Date

DayDiff = DateDiff("d", DayN, MVal)

Help Would be appreciated.




Comments

  • : I can't get DateDiff to work correctly.

    : Here is the coding:

    : Dim MVal, DayN, DayDiff

    : MVal = "1/1/01"

    : DayN = Date

    : DayDiff = DateDiff("d", DayN, MVal)

    : Help Would be appreciated.


    Change MVal = "1/1/2001"





  • : : I can't get DateDiff to work correctly.

    : : Here is the coding:

    : : Dim MVal, DayN, DayDiff

    : : MVal = "1/1/01"

    : : DayN = Date

    : : DayDiff = DateDiff("d", DayN, MVal)

    : : Help Would be appreciated.


    : Change MVal = "1/1/2001"


    That's probably not the problem. I tried using DateDiff in VB3 and it told me "File Not FOund".


  • : : : I can't get DateDiff to work correctly.

    : : : Here is the coding:

    : : : Dim MVal, DayN, DayDiff

    : : : MVal = "1/1/01"

    : : : DayN = Date

    : : : DayDiff = DateDiff("d", DayN, MVal)

    : : : Help Would be appreciated.


    : : Change MVal = "1/1/2001"


    : That's probably not the problem. I tried using DateDiff in VB3 and it told me "File Not FOund".


    Works for me.





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories