So I been at this for a few hours now and it returns the correct Year, and Day but for some odd reason it returns the wrong month. I\'m sure its a simple fix but I can\'t se
Try using new date and time library provided by Java 8, which are inspired by Joda-Time and they are easy to use. It also solved problem of having month starting with 0.