How to extract hour and min from DateTime

If you look in threads like this, there should some example of extraction. Moreover it will give you info on the different representations of time. The methodIcould be item.hour() or something similar. The problem is to convert the information in the right format so that it can be accepted by the item you want to set