DisplayModeFormat="MM/dd/yy"
If I load the control and then save back, the control looses the complete year info, i.e. 2008 turns into just 8 and throughs an invalid date error. I know the industry has decided that everybody wants to use 4 digit years, but I find it just as much of a waste of real estate now as I did before the millenium. Can I do this or is the control unable to work with 2 digit years?
Thanks for anyone's help.
Thank you.
Hello,
I am trying to reproduce the problem, unfortunately to no avail. I use the latest version of NetAdvantage (v8.3) and it works properly without exeptions. Please take a look at the picture below:
Hi,
I can not explain why year loses century. I tried following
protected void Button1_Click(object sender, EventArgs e){ this.Label1.Text = "d1=" + this.WebDateTimeEdit1.Value + " d2=" + this.WebDateTimeEdit2.Value;}
<igtxt:WebDateTimeEdit ID="WebDateTimeEdit1" runat="server" DisplayModeFormat="MM/dd/yy"></igtxt:WebDateTimeEdit><igtxt:WebDateTimeEdit ID="WebDateTimeEdit2" runat="server" DisplayModeFormat="MM/dd/yy" EditModeFormat="MM/dd/yy"></igtxt:WebDateTimeEdit><br /><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br /><asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
Does not matter what I entered in any editor _3/_3/2008 or _3/_3/8____ or _3/_3/08__, etc. the result was always the same and controls had 21st century. After postback label displayed
d1=3/3/2008 12:00:00 AM d2=3/3/2008 12:00:00 AM