Feb 05, 2016 12:08 AM|djnilo|LINK
programmer friends if I can guide please thank'm trying to make an application of a parking
entry and exit of vehicles
for example a car came and went 12:00 13:00 = 1:00 was an hour would charge $ 500
What if the vehicle was arrived example 12:15 = 12:00 and went was 15 minutes but still charges you $ 500?
another example if the vehicle arrived 12:00 and went was 13:15 = 1:15 entoces every 15 minutes of the hour should depues charged $ 150 every fifteen minutes after the hour
But how do I assign a monetary value to one hour?
Dim fechaini As DateTime
Dim fechafin As DateTime
DateTime.TryParse(TextBox1.Text, fechaini) ' 12:00
DateTime.TryParse(TextBox2.Text, fechafin) '13:00
Dim dif As TimeSpan = fechafin - fechaini
MsgBox(" after " & dif.Hours & ":" & dif.Minutes & " hrs.")