你可以定制时间的格式,是只显示日月,还是年月日,或者各种其它方式:
The visual appearance of the pop-up calendar is defined in CSS file popcalendar.css, which resides in the cal folder. Most styles have comments, so just try out and modify colors and font styles. To customize the style of the text box within the control, it is possible to set the CSS class of the text box with the following property:
Date1.TextCssClass = "dateTextBox";
Per default the date format is dd.mm.yyyy, e.g. 31.12.2007. If you want to change this, e.g. to 12/31/2007, you have to change the value of the constant DateFormat
, which is defined in the file Date.ascx.cs:
private const string DateFormat = "dd.MM.yyyy";