This clr stored procedure will pivot any temp table by date.
The temp table must contain 1 to n NVarchar,Varchar or char columns, which the output will be grouped by.
The temp table must contain 1 to N numeric (not amy type char or any type of date) columns.
The temp table must contain exactly one column of date type. Probably any date type would work but I've only tested it with datetime.
Just include the .cs file in your existing clr library and deploy.
I haven't included a project because I figure most people will just include it in their library.
exec PivotByDate '#temp'
Note the quotes around the table name.