Might as well factor this if check into getDateFromParam (have it return null if it's not defined) as well.