manhoosbilli1:
why not link me to your full code?
I have written several versions of this sort of thing. Here is one:
(two sketches, one to set the time and another to read it and show it on the Serial monitor)
http://forum.arduino.cc/index.php?topic=53422.msg2031756#msg2031756
Here is another:
(sketch to read the time and display it on an LCD)
https://forum.arduino.cc/index.php?topic=444702.msg3060986#msg3060986
Here is yet another:
(an insane, and ambitious, chiming clock -- do you have a speaker, or at least a piezo buzzer?)
https://forum.arduino.cc/index.php?topic=408565.msg2835936#msg2835936