You can roughly check the condition of your battery and charging circuit using nothing more than a $14 multimeter. If you dont have one, get one. Available from just about anywhere. Once you know how to use it you will save yourself a lot of trouble. Could be your battery, could be your alternator, could be a bad connection on the battery or alternator. Check all the connections, give them a pull and make sure they are all rock solid. Fix any that arent. Get the multimeter and let me know and we can run through testing to find your fault.
I always recommended replacing batteries at two years, simply because thats when their warranties expire. Battery companies know that the battery will last two years and if you replace it every two years you are pretty much sure that you will never have a problem because of the battery. If you do, its the car that is causing it. However, I see that some batteries are now offering a three year warranty, and so I would recommend three years from these batteries. How long they will last though depends on how they are treated. If you leave the lights on or stereo to the point that you cant start the car, you have done damage to the battery that will affect its capacity and life.
If you are sus of the battery, replace it. For something so critical is sad that some people simply refuse to blame it. Really, the cost isnt huge for the role that it plays. Its a starting point anyway. I wouldnt be too surprised if it was your alternator though from the problems that you are describing.