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
What I need to create and run an asp.net application?
What is enableviewstate in asp net?
Why mvc is better than asp.net? : Asp.Net MVC
Why Unload event of MasterPage Calls first in ASP.net ?
What is the difference between asp.net and mvc?
What is tracing? Where is it used?
Difference between singleton and singlecall.
What is asp.net mvc? : asp.net mvc
Is viewstate enabled by default?
What are the options in ASP.NET to maintain state?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
What are all the various Estimation Techniques available ?
How can we use Web API with ASP.NET Web Form?
What is a runtime version?