change date format on generic set value method