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
1140
Web Date chooser
posted

Hi,

We are developing the web application by using the infragistics components version 9.1.20091.2190.

In that we are using webdatetimeedit control for inserting the time values.

When we are try to get the values in 24hrs format from client side javascript function with 12hrs display format, but we are unable to get that expected 24hrs format value.

Note: Our application will support based on culture selection now we are using the JA_JP (Japanese).

Can you please suggest how to get the values in 24hrs format without changing the 12hrs display format in any culture.

Thanks in Advance

Parents
No Data
Reply
  • 29417
    Suggested Answer
    Offline posted
    Hello sphinx,
     
    Your question has been answered trough your ticket but regardless I’ll post it here as well so that all community members can benefit from it.
     
    To achieve this I recommend using  igedit_getById utility function. For more information on this function please refer to:
    and the getDate method.
     
    For example like this:
    function chkTIME() {
     
                var editor = igedit_getById("Wdt_FromTime");
                var date = editor.getDate();
                var textToShow = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds() + editor.getAMPM();
                alert(textToShow);
    }
     
    If you have further questions don’t hesitate to ask.
     
    Best Regards,
    Maya Kirova
    Developer Support Engineer
    Infragistics, Inc.

     
Children
No Data