Convert Seconds to Days, Hours, Minutes, Seconds

Category:
Dates and Math
Type:
Snippets
Difficulty:
Intermediate
Author:
Quentin Zervaas

Version Compatibility:

More information:
This function takes seconds and a predefined format as a parameter and returns a neatly formatted time string. See code comments for explanation of the formats.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: