SQL2KDBA69
Programmer
im trying to format 600 sec to mins and seconds. So i want 600s to look like 10:00 which is the mm:ss format.
thanks in advance
thanks in advance
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
public function FormatSeconds(Seconds as integer) as string
dim iMinutes = Seconds \ 10
dim iSeconds as integer = Seconds MOD 10
return iMinutes & ":" & iSeconds
end function
Dim ts As TimeSpan = TimeSpan.FromSeconds(600)
mystring = ts.Minutes & ":" & ts.seconds