bug fix: defaultdate issue

The tweak you made actually throws an error if a year, month, and or day is missing in the URL. Using the method I have included works either way. Thanks!