What is wrong with a line like this? DateTime.Parse(myString)
Answer Posted / soner gönül
- Different cultures uses different standard date and time formats. This overload can create ambiguous values for the same string in different cultures. Eg: What should "01/02/2016" parsed as? 1 February? 2 January? It depends.
- The Calendar used by CurrentCulture might not have this date and time because of it's boundries.
If anyone interested, I wrote an article in Turkish about that subject.
http://sonergonul.net/datetime-parse-string-kullanmayi-birakamaz-miyiz/
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain what does mvc represent in asp.net? : asp.net mvc
What are the steps to follow to host a web application on a web server?
What is difference between Lambda Expression and LINQ in ASP.NET?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
What are custom user controls in asp.net?
Explain what is event bubbling?
How can we register exception filter globally?
How you will handle session when deploying application in more than a server?
What are the different session state management options available in asp.net?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
Where is cookie used in asp.net?
What is caching in asp.net?
How can we pass info between 2 asp.net pages?
What are client activated objects and server activated objects?
Can you change a Master Page dynamically at runtime?