What is wrong with a line like this? DateTime.Parse(myString)
Answer Posted / rahul misra
A statement like this should be used only after making sure
that the string contains DateTime data.
e.g DateTime.Parse("3 4") will return 3rd April 2009
(current year assuming DD-MM-YYYY as the datetime format as
per the machine's settings)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How would you turn off cookies on a page of a website?
Explain what is clr?
what is a .xap file? Explain with an example.
How can we apply themes to an asp.net application?
Where web.config file is used?
What is syntax code to send email from an asp.net application?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
Why would anyone need to implement their own hashtable or linked list?
What is directive in asp net?
List the asp.net validation controls?
Difference between web user control and web custom control?
what are the ihttphandler and ihttphandlerfactory interfaces ?
Describe the difference between inline and code behind - which is best in?
What does postback mean?
Explain the difference between or and orelse?