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

What do you mean by serialize?

565


Mention the execution process for managed code?

549


What are HTTP handlers in ASP.NET?

589


What is session mode in asp.net?

529


Explain significance of routing? : asp.net mvc

561






What is data binding in asp net?

598


What is a 404 redirect?

579


What is session and application variable in asp net?

468


What is asp.net mvc5? : Asp.Net MVC

548


Differentiate between a page theme and a global theme?

528


Whats the difference between abstract factory pattern and factory pattern?

607


What is the difference between response.redirect and server.transfer?

548


Which two new properties are added in asp.net 4.0 page class?

535


How are sessions stored?

539


What is the purpose of session management?

524