Help displaying numbers on 7 segment display

The dispkays all work fine, i just need a way of extracting the first 4 digits from variables REDTIME and GREEN TIME so i can display them on the 4 digit displays