|
Eugene 8/7/2006 |
Use edit format: "Simple edit box with datepicker" |
C
|
colinmac author 8/7/2006 |
Hi Eugene, at the moment I am using the drop down box with datepicker option. The date picker shows years earlier than 1956 but won't insert data if you select say 1945. The drop down box displays years only back to 1956. I had this problem with ASP runner and fixed it with the link below |
|
Eugene 8/8/2006 |
You can edit function "DateToDropDownList" in file lib.cs (lib.vb) for (int i = (dt.Year == 1?DateTime.Now.Year:dt.Year) - 50; i <= (dt.Year == 1?DateTime.Now.Year:dt.Year) + 50; i++)
for (int i = 1850; i <= (dt.Year == 1?DateTime.Now.Year:dt.Year) + 50; i++)
i = (IIf(dt.Year = 1, DateTime.Now.Year, dt.Year)) - 50
i = 1850 |
C
|
colinmac author 8/14/2006 |
You can edit function "DateToDropDownList" in file lib.cs (lib.vb) for c# replace for (int i = (dt.Year == 1?DateTime.Now.Year:dt.Year) - 50; i <= (dt.Year == 1?DateTime.Now.Year:dt.Year) + 50; i++)
for (int i = 1850; i <= (dt.Year == 1?DateTime.Now.Year:dt.Year) + 50; i++)
i = (IIf(dt.Year = 1, DateTime.Now.Year, dt.Year)) - 50
i = 1850
|
M
|
mickj 4/14/2007 |
Thanks a lot thats done the trick!
|