It might be as simple as a bad CMOS/BIOS battery. You could try resetting the BIOS settings to factory defaults, then changing them to whatever is correct for your system. If you can't get into the BIOS when booting, you might look into a CMOS/BIOS battery replacement.