Setting the right Time and Date

Hi. I was getting different errors on my machine. From blue screen to system crashes. I noticed that the date and time on my computer was not set correctly.
But even after setting it properly, it still continues to set incorrectly after a restart. How can I fix it? And why is this error occuring?
