Add moment.isDate method

fixes #1790