need to add colon in time

i have char eventTime[6] and read in a 4 digit number to it. i need to take that 4 digit number as 24 hour time check it against the rules of 24 hr time and then sent it to a file with a colon between the first and second numbers.
which language? c or c++

 
char eventTime[6];


how is the data getting to me? what form is it? Each has a different approach.
What code do you have so far?

What exactly do you need help with?
Topic archived. No new replies allowed.