Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time formatting module

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,

I want to create a module that will take a number representing minutes, and return the time in a hh:mm format.

I created the function to do this, but I need some help in formatting the time that gets returned.

Right now I have two variable that holds the hours and minutes.

Any help would be appreciated.

Thanks

Gary
 
If the minutes never go about 59 then you can use this:

MyResult = MyHours & ":" & format(MyMinutes,"00")


HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top