Does any one know how to extract hour and minutes and transfer them to a seperate word(Hours in one word and Minutes in one word) from TIME OF DAY or TIME AND DATE.
Once you have your DT variable (Date_and_Time), all you need to do ix copy Byte 3 (hours) and Byte 4 (minutes) to any memory location you need:
So, if you have defined your DT variable starting at DB10.DBX0.0, DB10.DBB3 holds the hours value, and DB10.DBB4 holds the minutes value.
Hope this helps,
Daniel Chartier