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


Please Help Members By Posting Answers For Below Questions

How do you sign out from forms authentication?

744


Which library is used by the testers and developers to develop automated tests and create testing tools?

740


What is rending process in ASP.NET?

815


What is authorization in asp.net?

791


What is session start?

715


What is full form of asp.net?

706


In how many ways we can retrieve table records count?

733


What is the good practice to implement validations in aspx page?

836


How does viewstate work?

778


Which .NET framework supports Web API?

771


Can you explain one critical mapping?

735


When we use cookie less session? Explain its working?

758


Why is the standalone environment only useful during the development process?

1589


List the asp.net validation controls?

691


What is the size of Get method and how much data it can store?

787