Older code
set a date