jQWidgets Forums
Forum Replies Created
-
Author
-
January 3, 2015 at 10:00 pm in reply to: Date Format From Null Value not being Set Date Format From Null Value not being Set #64921
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).
December 31, 2014 at 4:24 pm in reply to: Date Format From Null Value not being Set Date Format From Null Value not being Set #64885Have 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!
-BretDecember 31, 2014 at 1:54 pm in reply to: Date Format From Null Value not being Set Date Format From Null Value not being Set #64880The 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 -
AuthorPosts