but I still get 1-9 on line 7 and then 10-59 on lines 7 and 8. What I wanted was 00-09 to show on lines 7 and 8 and then 10-59 on line 7 and 8.
jimboZA, I don't need the date and I am printing to a 1 line lcd so I will see if I can alter your program soon, thanks to both of you for the replies.
yea LarryD if you read my question that is almost what I have and in fact since I wrote it I have added the '0's but I was asking if there is any way to tell the program to print the leading '0's by saying 'give me a two figure number' similar to mistergreens %02d. I am just learning and wonder if there is a way of doing that.
thanks LarryD,
I read through your link and found an error that you may see straight away but I know little about arrays at this point so had no idea what was wrong.
I know a lot more about arrays now
the line
char [9] buffer = "";
brings up
expected unqualified-id before '[' token
when compiled but
char buffer[9] = "";
works fine and I think is a neater way than the way I was doing.
Thanks.