Prev: converting doubles to string
Next: Timer function
From: Jeff Johnson on 14 Dec 2009 15:38 "fniles" <fniles(a)pfmail.com> wrote in message news:e2KLhtOfKHA.5292(a)TK2MSFTNGP06.phx.gbl... >>> MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & >>> Right(VBDT.Timer.ToString("#0.00"), 2) >>> >>> An example of the result of MyTime: >>> 38624.73 >> >> That's some SERIOUSLY broken code if the format string "dd-MMM-yyyy >> HH:nn:ss" returns "38624." >> >> Seriously. > 38624 is the result from Right(VBDT.Timer.ToString("#0.00"), 2) > and not from the dd-MMMM-yyyy STILL pretty broken if the function requests TWO characters and you get back FIVE! |