Expose method for setting date