i want to Parse a String of Hours for Example: 16:40, 01:00, 12:00, 1:00, 4:90
my Parsing way :
txtManDezStunden.Text = TimeSpan.ParseExact(txtManStunden.Text, "hh':'mm", null).TotalHours.ToString("0.00");
Everything works fine if the Input of txtManStunden.Text is 01:00 It "fails" when the Input is 1:00 which is a behavior i would like to catch.
Is there a way to still parse even if the Operator uses "01:00, 001:00, 1:00" as an input
Thanks for any recommendations