|
how to convert a string (textbox) to date format
rahul saini
|
|
|
|
|
Hi
you can convert string into date with help of Convert function
dim dt as DateTime
dim str as string = "12/12/2006"
dt = Convert.ToDateTime(str)
Then dt have value 12/12/2006
Enjoy....
|
|
|
|
|
hi
thanx 4 showing interesting.
i hav used (change.todatetime) but not satisfied with the result. i m using following code pls check.
Dim startDate As DateTime
startDate = Convert.ToDateTime(start_date.Text.ToString)
Dim endDate As DateTime
endDate = Convert.ToDateTime(end_date.Text.ToString)
If endDate > startDate Then
Return True
Else
Return False
End If
regards
rahul saini
|
|
|
|
|
yes it will perfectly run
|
|
|
|
|
no it is not working. following error is shown
"String was not recognized as a valid DateTime."
so please check it again
thanx
regards
rahul saini
|
|
|
|
|
what are you passing in your text box???
tell me exact value that you are passing in your text box
and no need to write .ToString after .Text it is by default string
|
|
|
|
|
i m passing. date in following format 26/10/2006
dat's it
regards
rahul saini
|
|
|
|
|
You have to pass date in mm/dd/yyyy format dear else it will give error
stdate = DateTime.Parse(TextBox1.Text)
Response.Write(stdate.ToString("dd MMM yyyy"))
try this code and pass 10/26/2006 in your text box it will display 26 Oct 2006 so you must pass date in mm/dd/yyyy format as by default it accept date in this format..
Ok so try it and let me know it is working or not
|
|
|
|
|
coool man
its working
thanx
regards
bye
rahul saini
|
|
|
|
|
pls tell me what is the use of webclient class and when i have to use this class called webclient.
tbhattacharjee
|
|
|
|
|
I have two buttons event in my vb.net code. I wish to pass a array from one button1.click event to button2.click event. How can i pass the array value? I tried calling the array but the valus turns out to be zero when it was passed from one procedure to another. Please help. Thank you.
|
|
|
|
|
Use session variables to pass array across the events
Thomas
|
|
|
|
|
Can you show me how to use session variable to pass the array? The session variable will pass the array address or will session each elements in the array? Thanks in advance
|
|
|
|
|
Dim arr() As Object
Session("arr") = arr
Thomas
|
|
|
|
|
hi,
can anyone help me out with code or related information for moving a mouse pointer over the graph(same as: refer http://finance.yahoo.com/charts) using c# and asp.net1.1 .
I have a restriction of not uisng any third party tools
thanks & regards
bskvarma
|
|
|
|
|
hi,
generallary if we give response.write. it will be printed on top.But i don't want that.I want to display it in a desired location.Can we specify any location for Response.Write?If yes,how?
thanks
vijay
|
|
|
|
|
No, you can't.
You should only use Response.Write if you use it to output the entire page yourself.
Put a Label or Literal control on the page where you want the output, and assign it to the Text property of the control.
---
b { font-weight: normal; }
|
|
|
|
|
Yes You can,
Give
Response.Write("<div id='mydiv' style='COLOR:#5E3E74; FONT-SIZE: 14px;FONT-WEIGHT: BOLD; LEFT: 600px; TOP: 600px' >Hi Guffa</DIV>");
You can change LEFt & TOP as you wish.
Cheers !!!
Sony Sebastian
|
|
|
|
|
Yes, you can do like that, but not if you want a well working web page.
The tag will be placed at the top of the html code, even before the doctype and html tags. This makes the html code invalid, and throws the browser into quirks mode. This is especially serious for Internet Explorer, because it renders the page quite differently in this mode.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Friends,
I am using ASP.Net for my application. In that initially I tried something and it was working. But now i modified the aspx.cs page and when i try to run the application it is not working according to the modification. It shows only the previous results even though rebuild the solution. Can anyone tell me the solution.
Thanks in Advance.
Prya
|
|
|
|
|
Close the solution
Clean up vscache
restart the IDE and build your solution
Regards,
Akhilesh Yadav
|
|
|
|
|
Hi,
I am new to .Net. Please tell me how to Clean up vscache.
Thanks and Regards
Prya
|
|
|
|
|
VSCache is in
\Documents and Settings\VSWebCache\
you will see a folder with name of your project. Delete that folder.
REstart IDE and build again
Regards,
Akhilesh Yadav
|
|
|
|
|
Hi,
There is no folder with the name of the project in VSWebCache.
Prya
|
|
|
|
|
how to read all .aspx file names from xml file.
|
|
|
|