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
Describe the diffeerence between inline and code behind?
Is data edited in the Repeater control?
How can we create Tree control in asp.net?
What is a web pool?
What is form method?
what cut off mark for po's,what questions they asked for interview?
Explain the disadvantages of viewstate?
What is data reader in asp.net?
Can you use Web API with ASP.NET Web Form?
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is the difference between CLICK and MOUSE DOWN Event ?
What is difference between viewstate and session in asp net?
where can i gather the materials for MCP certification
What is a windows service?
Does web services support data reader like pom project?