got a problem. I want to convert two doubles to a time format (HH:mm)(2.5 equals to 02:30 for example). I got a hour int variable and minute int variable. The problem is that I don't know what to do with them, I mean how I import them to the date time picker. At the beginning the time is stored in a string in an array.
public {
int hour = 5;
int min =40;
time.Value = new DateTime(hour, min);// ***this is a mistake***
}
The outcome should be 05:40 in a datepicker