assign date dynamically