VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

DateDiffEx

Paul Mather  (15 Submissions)   Coding Standards   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Input a Starting Time and an Ending Time and this function will translate it into English. For Example: DateDiffEx("02/12/2002 5:05:28 AM","02/14/2002 8:00:58 PM") Return= "2 days, 15 hours", DateDiffEx("02/14/2002 5:05:28 AM","02/14/2002 8:00:58 PM") Return= "15 hours, 55 minutes, 30 seconds". It only includes the "s" if the value does not equal 1. It eliminates the 0 values as well.

Rate DateDiffEx (9(9 Vote))
DateDiffEx.bas

DateDiffEx Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters