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 asp.net mvc differs from asp.net web forms? : asp.net mvc
Describe the .net base class library.
Explain difference between dataset and datareader?
Can you change a master page dynamically at runtime? How?
How can we pass info between 2 asp.net pages?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
How can you debug your.net application?
What is ipostback?
What is applicatio domain?
Why and where this web.config file is used?
Explain Optimization technique description?
To add a hyperlink column to the DataGrid which tag is used ?
How you can access the values from the Repeater control in ASP.NET?
What are the modes of updation in an updatepanel? What are triggers of an updatepanel?
What is synchronous and Asynchronous post back ?