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
How information about the user's locale can be accessed?
What is a response cookie?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
What is masterpage?
How may clustered index we can create in table?
in which protocol ASP.NET WEB API Work?
How would you turn off cookies on a page of a website?
How to retrieve user name in case of Window Authentication?
What is authorization in asp.net?
What is syntax code to send email from an asp.net application?
What is the difference between asp.net and mvc?
What is break mode?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
What do you mean by View State and what is its role?