Thanks to the advice and reply, I really appreciated it.

From the interupt I know that I could add in the date.Such as day=day+1,month=month+1 and so on....

I have another matter which is WHERE can i store 365 sunrsie time?
My algoritm is just like that:-
1 jan 2006 the sunrise time is 6:10 motor start run and 2 jan 2006 the sunrise time is 6:15 and so on.

I know that it is impossible for me to store 365 data in the PIC16F84A eeprom.
Can I store my data into the program memory or RAM?????

Please advice and thanks you very much...