Your are developing web application in which user needs to enter a DateTime in a text field. You need to parse that value in code. you need to write code in such way it don't throw exception if use enter invalid date. Which method do you use?

 Posted by Rajkatie on 8/30/2013 | Category: .NET Framework Interview questions | Views: 2235 | Points: 40
Select from following answers:
  1. DateTime.Parse
  2. DateTime.TryParse
  3. Convert.ToDateTime
  4. All Above

Show Correct Answer

Source: microsoft exam ref | | Alert Moderator 

Comments or Responses

Login to post response