What is wrong with a line like this? DateTime.Parse(myString)

Answer Posted / anand

Nothing wrong with the format really. Only problem is that
the result would depend on the Culture of the machine where
this line is getting invoked. Ideally you should also
supply the second parameter - or specify the Culture!

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is caching? What are different ways of caching in asp.net?

912


What is the importance of Global.asax in ASP.NET?

783


What is asp.net and how it works?

716


How does viewstate work?

790


What is the use of web.config and machine.config files?

855


What is ispostback method in asp.net?

748


What is asp.net architecture?

750


What is another word for redirect?

701


what are the ihttphandler and ihttphandlerfactory interfaces ?

725


What is a web api?

767


Where is session cookies stored?

709


Is it possible for me to change my aspx file extension to some other name?

785


Explain what is postback in asp. Net?

779


How can we access static variable?

849


What is ispostback method in asp.net? Why do we use that?

847