M Mike Jul 14, 2004 #1 Hi, Anyone knows what the equivalent of the IsDate function is in C#? Thanks Mike
N Noel Hoo Jul 14, 2004 #2 Hi there, There isn't an equivalend IsDate function in C# You could use the DateTime.Parse() method. If it throws an exception, its not a date. Regards,
Hi there, There isn't an equivalend IsDate function in C# You could use the DateTime.Parse() method. If it throws an exception, its not a date. Regards,
S Shakir Hussain Jul 14, 2004 #3 Try this You have to add reference to Microsoft.VisualBasic in c# project. string myDate = @"1\1\04"; bool Result = Microsoft.VisualBasic.Information.IsDate(myDate ); -- Shak (Houston) Hi, Anyone knows what the equivalent of the IsDate function is in C#? Thanks Mike
Try this You have to add reference to Microsoft.VisualBasic in c# project. string myDate = @"1\1\04"; bool Result = Microsoft.VisualBasic.Information.IsDate(myDate ); -- Shak (Houston) Hi, Anyone knows what the equivalent of the IsDate function is in C#? Thanks Mike
L lurker Jul 15, 2004 #4 Try this link: http://www.aspfree.com/c/a/ASP.NET/DateDiff-function-in-C-to-simulate-VBScripts-by-Robert-Chartier/
Try this link: http://www.aspfree.com/c/a/ASP.NET/DateDiff-function-in-C-to-simulate-VBScripts-by-Robert-Chartier/