Forum

Christian
      2 years ago #30116
      Up
      0
      Down
      ::

      Hi Dan

      thanks for the answer. The point is: I already mock the data in my server-side business object (SSBO) like this:

      var termine = [];

      termine.push({
      “id”: “11”,

      “Endtermin”: new Date(“2022-02-28”),

      });

      Thus, I already have a nice date object in my JSON response. Noteworthy, the data structure I sent back to the browser is a collection of “termin structs”, and the termin struct has the field “Endtermin” defined as Date. Formatting the date string in the backend would mean to change this and have the struct field “Endtermin” as a String, right?

      Using the DatePicker widget is not possible, since I have a table with several thousands of entries, so I don’t want to have several thousands of DatePicker widgets in my Screen…

      What about copying the Text widget and create an own one that formats the String? Would I do this in the “Script” tab of the created widget?

      Thank you!