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 the difference between AutoPostBack and IspostBack in ASP.NET?

1017


How do I publish my asp.net application to my isp's web server?

1020


how to include timer or counting time to display next page in asp.net

2094


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

1013


Which is better union or union all?

1010


How can we communicate with each server in N-tier Architecture? and what are the methods?

2189


Explain the different types of assemblies?

883


If you are using two select queries and retrieving data. how do you access second query's result set using data reader?

5503


Explain about solution explorer window?

989


Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?

997


How to display validation messages in one control?

940


What is the application pool?

913


what is a .xap file? Explain with an example.

969


How many types of session in ASP.NET

1033


What is the significance of finalize method in .net?

977