Converting non 24hr time into number
Hello All,
Very new to .Net :)
I'm trying to convert Non 24hr Time: 150:45 to 150.75 or
26:15 to 26.25 for some simple conversions that I use at work.
I'm pretty sure its either a right or mid function?? from doing this in Excel or Access.
but this has me stumped......at least for now.
Some help on this would be great.
Private Sub txtOutput_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtInput.TextChanged
'Declare
Dim strTime As String
'Convert
strTime = CDec(txtInput.Text)
'Format
FormatNumber(txtInput.Text)
'Output
lblOutput.Text = strTime
FYI: I know there should be a lot more code to this, but it's a beginning :)
|