adding on set date method call

Added a on set date call
Added a on set date call