Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain what does mvc represent in asp.net? : asp.net mvc

1013


What are the steps to follow to host a web application on a web server?

1028


What is difference between Lambda Expression and LINQ in ASP.NET?

1133


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

892


What are custom user controls in asp.net?

983


Explain what is event bubbling?

986


How can we register exception filter globally?

955


How you will handle session when deploying application in more than a server?

1064


What are the different session state management options available in asp.net?

957


if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....

2088


Where is cookie used in asp.net?

1062


What is caching in asp.net?

978


How can we pass info between 2 asp.net pages?

1033


What are client activated objects and server activated objects?

919


Can you change a Master Page dynamically at runtime?

931