Can anyone tell me why when I enter 01:00 into the WebDateTimeEdit control on postback I get 1:00:05 AM on postback. Why is this extra 5 seconds being added? This is missing up my ability to subtract an start time from end time to get a TimeSpan. The result is always wrong. Can anyone tell me how to fix this?
Here is the WebDateTimeEdit tag I'm using.
<igtxt:WebDateTimeEdit EditModeFormat="HH:mm" ID="dateTimeEditor" runat="server" />
Hello,
I am guessing here here, but this looks like the WebDateTimeEdit is bound each time to the server current time (DateTime.Now()), which could also be the default mode of the editor. Are you binding to a specific value? Or you using WebDateTimeEdit as a column editor in the grid? Some details will cerainly provide additional clues.
Yes, I am using this in a UltraWebGrid column as a column editor. I don't understand why that would matter though. I would expect the result of the value to be the same inside of outside of the grid, unless the grid itself is affecting the value the WebDateTimeEdit returns.