store date in variable