i have to compare stuff the hour before my program run, but i need time to be 07:00 and not 7:00
also after noon it needs to be 13:00 and not 1:00.
It always need to be the complete hour, so i’ve made it like this variable
lasthour = Datetime.Now.AddHours(-1).TimeOfDay.Hours.ToString+":00"
but that gives me 7:00
is there a way to turn that into 07:00, but still keep military time format?
thanks