A real BIG thanks for this nice code.

Here it worked :-)

it is displaying time and date.

Still a small problem that i will describe in details:

1- it says to chose between 24 hours or 12 hours and this is working fine.
2- chose time and date and things are also fine. In fact i chose today's date and time.

3- when i press the middle button again to save, it says: MEMORIZED.

but since then, time is not being updated on the screen. It is left all the time as i have set it since the beginning. I have waited 30 minutes and nothing has changed.

By the way, i used the 3V battery and noticed that everything was changed to 4 whether by number or place. What i mean is:
04:04:04
04 Apr 2004

so what do you suggest to do?

more than 3/4 of the work is done and i need to continue it till the end.

thanks in advance.

By the way Bobk,

i didn't use any capacitors but you were right about D4 till D7.
so help me to finish it....

I'll check in 1 hour.

Bye.