Storing the date in a variable increases the probability that the date changes between the start of the scenario and the moment the date is checked. That is, the test starts at 23:59:50 and ends the next day.