hi iam getting date as like '1/01/2010' from a dateofarrival(name of text box id) .......
i want to replace the ' from '1/01'2010'.,
iam interested to show as like 1/01/2010.........
plsa help me,,,,,,,,,,

here iam using asp.net with vb.net ........
here my coding is.....

Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & "' ")


Dim ardate
ardate = Request.QueryString("ardate")
arrivaldate.Text = ardate

pls help me urgent...........

Friend kanuri1,

"urgent..." sounds unfriendly. Isn't it? Please help us to help you.

Please do not post threads with generic subjects such as "URGENT!!" or "HELP ME" or "PROBLEM". Instead, clearly state a phrase describing the problem as the thread's title.

I love learning and teaching languages, so feel free to talk to me in any language any time here.

Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & "' ")


Dim ardate
ardate = Request.QueryString("ardate")
arrivaldate.Text = ardate

It is unnecessary to append single quotes around the value you are inserting into a querystring. However, you may want to include a call to Server.UrlEncode for the value.

Response.Redirect("check availability.aspx?ardate=" & Server.UrlEncode(dateofarrival.Text))
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.