Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting data in a string

Status
Not open for further replies.

Maximus007

Technical User
Jul 26, 2004
248
US
I have a string that holds data and I want to remove the dash. It displays a day 6-22-2005
code:

Dim strDisplayDate

strDisplayDate= request.form("Date")

response.write (Replace(Cstr(strDisplayDate), "-" , "")

and nothing happens. It remains the same and the dashes are not remove.
 
It's working fine for me. Might be the "Date" variable. I get errors here and there when using keywords I thought were ok. Try changing it to "theDate" or another name and see if that works.

:) -TAG

alien.gif

[Signature modified by admin request]
-TAG
anongod@hotmail.com
'Drawing on my fine command of language, I said nothing.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top