Hello All

In my circuit I need to calculate with date:
example:calculate the current date comparing with one previous date
and if the previous date is more than 45 days ago then light one led

I have in the board the RTC DS1307 device
Have anyone a example code how can I do that with a PIC


Thanks for any help

Best Regards

Pedro