Dynamically selecting the default date