jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • bmg125
    Participant

    BadFormat

    Here is an example. The bottom date picker had an initial value of null. When a date is set, it isn’t formatted consistently with the format chosen. Both pickers are set to the same day (January 31st).


    bmg125
    Participant

    Have you tried the example code to see what I am trying to explain? I can’t tell if I am not being clear in the description or if you are saying this is working as designed.

    Is there a way to get the value to display consistently for me? This seems like a problem where the widget is not able to correctly handle the integration between Knockoutjs when the initial value is null.

    I understand that the date format is localized, but in my settings the short version of a date is MM/dd/yyyy not dd/MM/yyyy. dd/MM/yyyy which is what is showing up when the initial value is null and a date is set. This is not the expected behavior because the date format is set to MM/dd/yyyy.

    If the dateFormat is set to something, the date should always display in that format. This is the not case and seems like a problem.

    Thanks!
    -Bret


    bmg125
    Participant

    The dates that start with a value have a format of MM/dd/yyyy. The one that starts with a null will have a format of dd/MM/yyyy.
    ‘d’ or small format is MM/dd/yyyy which is different from the default or dd/MM/yyyy. Or at least that is my understanding. If you change the format to be MM/dd/yyyy the problem persists.

    The problem isn’t with the ‘AllowNullDates’ it is when the actual value starts as a null, the format is given the default and not the correct format of MM/dd/yyyy.

    Thanks!
    -Bret

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