Added setDate method.  Fixed parseInt calls to use radix 10.