.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

TryParseExact c#

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :Windows Application
DateTime DFrom=DateTime.MinValue; if (DateTime.TryParseExact(tbDate.Text, "dd/MM/yyyy hh:mm:ss", new CultureInfo("en-US"), DateTimeStyles.None, out DFrom)) { MessageBox.Show(DFrom.ToString()); } else{ //error msg }   how can i check the date field in input the valid date fromat (dd/mm/yyyy hh:mm:ss) why i input 28/02/2010 14:00:00 it always prompt a invalid format how can i check if the field is input correct format with dd/mm/yyyy hh:mm:ss

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend