2008年5月27日
摘要: 能输入数字:"^[0-9]*$"。 只能输入n位的数字:"^"d{n}$"。 只能输入至少n位的数字:"^"d{n,}$"。 只能输入m~n位的数字:。"^"d{m,n}$" 只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。 只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。 只能输入有1~3位小数的正实数:"^[0-... 阅读全文
posted @ 2008-05-27 11:45 hcmfys_lover 阅读(406) 评论(3) 推荐(0) 编辑
摘要: 、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int... 阅读全文
posted @ 2008-05-27 11:43 hcmfys_lover 阅读(362) 评论(1) 推荐(0) 编辑