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

Explain how can we access static variable?

549


What is difference between asp state management and asp.net state management?

572


How would you implement inheritance using c#?

577


What are server activated objects?

635


What is loop in asp.net?

586






What kind of data we can store in viewstate?

578


5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?

1771


How to implement globalization and localization in the use interface in .net.

538


What does passport and windows authentication mean in ASP.NET?

649


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

556


What is difference between viewstate and session state in javascript?

577


What is difference between viewstate and session in asp net?

561


How to implement role based security in asp.net mvc? : Asp.Net MVC

437


What is server side session?

522


List some of the important session state modes of asp.net.

506