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
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What are the steps to follow to host a web application on a web server?
What is the caspol.exe tool used for?
I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?
How ViewstateMac works?
What is the advantage of using Windows authentication in a Web application?
Which is faster viewbag or viewdata?
What are sql joins?
How does cookies work in asp net?
how to transfer the file from client to server using asp.net
Why is an object pool required?
What are demand-paging and pre-paging?
What is http pipeline in asp.net?
Explain the difference between Repeater and Data list control in ASP.NET?