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
Entering 24 hour time using WebDateTimeEdit
posted

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" />

Parents
No Data
Reply
  • 28464
    posted

    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.

Children