Fixed the constructor to handle arguments that have year and month only

Added code to handle two arguments specially so that it can prevent from setting day to 0.