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 do I send an email message from my ASP.NET page?
Why do we use asp.net?
Explain the code Access Security (CAS) in .net Framework?
What is difference between singleton and single call?
benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks
Difference between web user control and web custom control?
Difference between .NET and previous version?
How to rename a table using sql queries?
What does ascx stand for?
Explain file-based dependency and key-based dependency.
Explain difference betn dataset and recordset?
What is the use of session in web application?
What does asp in asp.net stand for?
Explain server side state management system.
How to register exception filter globally?