it depends on the version of sqlserver you are using. if using sqlserver 2022 you can cross apply to generate_series.
otherwise you need a series table. you need to know the max visitor count, then insert a row for 1 to max.
create table Series (number int not null unique)
declare @max int = 10000;
declare @i int = 0;
while (@i < @max) begin
set @i = @i + 1
insert Series values(@i)
end
then just join to your series table:
select TheDate
from @Visitors
join Series on Series.Number between 1 and CountOfVisitors