Click here to Skip to main content
15,889,808 members
Articles / Web Development / ASP.NET

Date Picker User Control

Rate me:
Please Sign up or sign in to vote.
4.66/5 (43 votes)
2 Dec 2011CPOL6 min read 373.5K   18.2K   99  
A date picker user control in ASP.NET (C#, VS2010)
/*
 *	DatePickerControl
 *	
 *  A simple DatePicker control for ASP.NET.
 *  Created in 2011 by Simon Baer, originally based on code by Tan Ling	Wee.
 * 
 *  Licensed under the Code Project Open License (CPOL).
 */

using System;

namespace DatePickerControl
{
    /// <summary>
    /// Arguments of the DateChanged event.
    /// </summary>
    public class DateChangedEventArgs : EventArgs
    {
        private DateTime date;

        /// <summary>
        /// Create a new instance.
        /// </summary>
        /// <param name="date"></param>
        public DateChangedEventArgs(DateTime date)
        {
            this.date = date;
        }

        /// <summary>
        /// Gets the new date.
        /// </summary>
        public DateTime Date
        {
            get { return date; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Sevitec Informatik AG
Switzerland Switzerland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions