jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput format datetime control

This topic contains 5 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • format datetime control #16887

    skambo
    Member

    Hello,

    I am using datetimepicker control and its returning me value in this format
    Thu Mar 28 00:00:00 EDT 2013

    But I want this to retrun result in this format
    31/12/9999 11:59:59 PM
    So that i can use datetime.parse() function to store value in database.

    How can this be acheived? or Any other way to do this?

    Thanks,
    sat

    format datetime control #16897

    Peter Stoev
    Keymaster

    Hi skambo,

    You can do this:

    var testValue = $("#dateInput").find('input').val();

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    format datetime control #16996

    skambo
    Member

    Wooaaahhh that worked!!!

    Many many thanks Peter.

    sat

    format datetime control #17193

    skambo
    Member

    When we use

    Number keys – manually type date and time when the calendar is closed

    Suppose I want to put time as : 16:00:00, The moment we put 1 and press 6 valuechange event gets value as 10:00:00.

    Is there any way we can disable control by Number keys?

    Thanks,
    Sat

    format datetime control #18553

    mediartisan
    Participant

    I have a DateTimeInput which does not display the drop down calendar header correctly. Only the tops of the Month text appears. Does anyone know what can cause this distortion of the drop down calendar display?

    format datetime control #18566

    Peter Stoev
    Keymaster

    Hi mediartisan,

    Could you provide more information and sample about your issue? How do you initialize the widget?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.