soulpumpkin
Programmer
I have a asp page that is being saved to excel. I'm using the following code:
Which gives me "Description 10-26-2006 112700 AM" for a file name. I need "Description 10-26-2006 1127 00 AM".
How do I go about adding spaces into the end of the string?
Soul Pumpkin
Code:
strDate = Now()
strDate = Replace(strDate, "/", "-")
strDate = Replace(strDate, ":", "")
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=" & rs3("Description") & " " & strDate & ".xls"
Which gives me "Description 10-26-2006 112700 AM" for a file name. I need "Description 10-26-2006 1127 00 AM".
How do I go about adding spaces into the end of the string?
Soul Pumpkin