ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
What is wrong with a line like this? DateTime.Parse(myString)
 Question Submitted By :: .NetGuru
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is wrong with a line like this? DateTime.Parse(myString)
Answer
# 1
DateTime.parse("","") will take two parameter one string 
and other get other on object
 
Is This Answer Correct ?    0 Yes 3 No
Ish
 
  Re: What is wrong with a line like this? DateTime.Parse(myString)
Answer
# 2
No .it can have one argument.
Eg. Response.Write(DateTime.Parse("10:50:39"))
will return you date and time.
such as 24/06/2008 10:50:39 AM

You can not simply have any irrlevant string,it should be 
some string containing data or time value.
 
Is This Answer Correct ?    5 Yes 0 No
Fusion
 
 
 
  Re: What is wrong with a line like this? DateTime.Parse(myString)
Answer
# 3
Nothing wrong with the format really. Only problem is that 
the result would depend on the Culture of the machine where 
this line is getting invoked. Ideally you should also 
supply the second parameter - or specify the Culture!
 
Is This Answer Correct ?    4 Yes 0 No
Anand
 
  Re: What is wrong with a line like this? DateTime.Parse(myString)
Answer
# 4
A statement like this should be used only after making sure
that the string contains DateTime data. 
e.g DateTime.Parse("3 4") will return 3rd April 2009
(current year assuming DD-MM-YYYY as the datetime format as
per the machine's settings)
 
Is This Answer Correct ?    1 Yes 0 No
Rahul Misra
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Define ViewState and how can it be used?  3
when using windows API in .net then it is managed code or Unmanaged code?  1
What is DTS package? Accenture2
which is best possible way to add data source to data grid when the data is huge(10 lack recored)how to edit a perticular row Aviva3
What is the role of global.asax?  7
What is view state and how this can be done and was this there in asp ? Accenture1
How many Directives r in ASP.NET?  4
Why is validation always done on the server? When does that occur?  1
Describe the two main components of the .NET framework ?  1
What is the difference between application and cache variables? Astadia2
What event fired during, when datagrid click?  1
What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData() Syntax-Softtech2
Difference between Dataset and DataReader ? Accenture4
What is the use of sessionstate tag in the web.config file?  2
what is an Eventbubbling? DSS3
What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable Syntax-Softtech2
User contro having 4 text boxes given validation controls. i want to execute validations after the button click event how it is?  3
How do you perform validations ? Microsoft1
which method marks a config file section for encryption?  1
What is stateless asp or asp.net ? Accenture2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com