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
What is microsoft windows sharepoint services?
What is the good practice to implement validations in aspx page?
What is the function of new view engine in asp.net? : asp.net mvc
What are the major built-in objects in ASP.NET?
Define a static class?
Where web.config file is used?
Explain the differences between managed and unmanaged code?
What do you mean by query string?
What is slidemaster?
What is the purpose of url encoding?
What is the difference between web config and machine config files?
Which adapter should you use, if you want to get the data from an access database?
What is difference between session and cookies in asp net?
What are the differnt types of handler in ASP.NET?
What are server activated objects?