Howdy, Stranger!

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

Categories

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.





  • Shawn CarterShawn Carter Member Posts: 0

    ________ ( http://forcoder.org ) free video tutorials and ebooks about \ MATLAB, Python, C++, Objective-C, Visual Basic, PL/SQL, PHP, JavaScript, Ruby, C#, Go, Swift, Assembly, C, R, Visual Basic .NET, Delphi, Java, Perl, Scratch COBOL, Crystal, Scheme, Ada, Bash, FoxPro, Julia, Hack, LabVIEW, Scala, Awk, ML, Erlang, Fortran, Kotlin, Lisp, D, Rust, Apex, VBScript, Transact-SQL, Logo, SAS, ABAP, Clojure, Dart, Alice, Lua, Prolog, F# \

Sign In or Register to comment.