Add setXXX functions to Date class.