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
Is asp.net still used?
Is asp.net mvc still used? : Asp.Net MVC
What is a server cookie?
What is the difference between file-based dependency and key-based dependency?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
Name the tools or API for developing or testing web api?
What is the basic difference between asp and asp.net?
How to implement Authentication and Authorization?
What is the differences between a primary key and a unique key in sql server?
Can the dictionary object be created in client?s scope ?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
Can we add code files of different languages in app_code folder?
What are the new login controls in asp.net 2.0?
How we implement web farm and web garden concept in asp.net?
What is session and application variable in asp net?