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 the difference between AutoPostBack and IspostBack in ASP.NET?
How do I publish my asp.net application to my isp's web server?
how to include timer or counting time to display next page in asp.net
Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?
Which is better union or union all?
How can we communicate with each server in N-tier Architecture? and what are the methods?
Explain the different types of assemblies?
If you are using two select queries and retrieving data. how do you access second query's result set using data reader?
Explain about solution explorer window?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
How to display validation messages in one control?
What is the application pool?
what is a .xap file? Explain with an example.
How many types of session in ASP.NET
What is the significance of finalize method in .net?