CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS MICROSOFT DOTNET DETAILS
    Question :
    What?s wrong with a line like this ? DateTime.Parse(myString).
    Category DotNet Interview Questions
    Rating (0.4) By 1375 users
    Added on 12/21/2005
    Views 3106
    Rate it!
    Answers:

    The result returned by this function is not assigned to anything, should be something like
    var x = DateTime.Parse(myString)



    Culture is missing, result would be parsed according to the local culture. That means
    1/2/2001 would be ambiguous.



    Posted by: noga    

    Contact noga Contact noga

    This code will throw exception when invalid datetime string is passed. Use TryParse instead.



    Posted by: Ji     

    Contact Ji Contact Ji

    No error in the code
    string Mystring = "whatevery you want as string"
    Datetime.parse("Mystring");



    Posted by: Abhishek Saurabh    

    Contact Abhishek Saurabh Contact Abhishek Saurabh

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    Is string a value type or a reference type?
    View Answer
    What is boxing?
    View Answer
    How would one do a deep copy in .NET?
    View Answer
    Contrast the use of an abstract base class against an interface?
    View Answer
    What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
    View Answer
    What is the difference between Debug.Write and Trace.Write? When should each be used?
    View Answer
    Why is catch(Exception) almost always a bad idea?
    View Answer
    What is FullTrust? Do GAC?ed assemblies have FullTrust?
    View Answer
    What are PDBs? Where must they be located for debugging to work?
    View Answer
    What is strong-typing versus weak-typing? Which is preferred? Why?
    View Answer
    What is the difference between thread and process?
    View Answer
    What is the difference between a.Equals(b) and a == b?
    View Answer
    How does the lifecycle of Windows services differ from Standard EXE?
    View Answer
    What is a Windows Service and how does its lifecycle differ from a ?standard? EXE?
    View Answer
    What is CLR?
    View Answer
    Explain the differences between Server-side and Client-side code?
    View Answer
    What type of code (server or client) is found in a Code-Behind class?
    View Answer
    Should validation (did the user enter a real date) occur server-side or client-side? Why?
    View Answer
    What does the EnableViewState Means?
    View Answer
    What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL DotNet Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 1.516602 Seconds