Shuts off after 3-4 seconds

Our Microwave has stopped working. It shuts off after a few seconds and the display goes wacky. Then you have to reset the date/time. Then I try again and it does the same thing.

Anybody know what the problem is? Can I fix it or is it time to buy a new one?

Thanks,

Jeff