Home

C# DIY IsDate Function

Handy to stick this in the App_Code folder...

    public static bool IsDate(string FromThis)
    {
        try
        {
            DateTime x = Convert.ToDateTime(FromThis);
            return true;
        }
        catch
        {
            return false;
        }
    }

Reader's Comments

Post Your Comment Posts/Links Rules

Name

Comment

Add a RELEVANT link (not required)

Upload an image (not required)

No uploaded image
Real person number
Please enter the above number below




Home
Admin Ren's Biking Blog