Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1070
WebDateTimeEdit not displaying saved data
posted

I'm trying to use the WebDateTimeEdit control. I have one for date and one for time. So far I've been able to make it work to force the type of value being entered. The date is entered as MM/dd/yyyy, the time is entered as HH:mm (24 hour) and this works great. The problem I'm having now is that after the data is saved I can't get it to display in the text box. I'm using the code below to try and make this work. Does anyone have any idea why this might not be working?

 <igtxt:WebDateTimeEdit Width="60px" ID="enterDepartFromDate" runat="server" />

this.enterDepartFromDate.EditModeFormat = "MM/dd/yyyy";
this.enterDepartFromDate.DataMode = Infragistics.WebUI.WebDataInput.DateDataMode.Text;
this.enterDepartFromDate.Value = jobEntity.DepartFromTime.Value.ToString("MM/dd/yyyy");