wip resolving date format pbm, already figured out where it comes from and how to create a new one

This commit is contained in:
asus
2024-04-20 18:03:21 +02:00
parent 6bbedf52cb
commit 70b2afe577
3 changed files with 118 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
let datepicker_wrapper = document.querySelector(".datepicker-wrapper");
console.log("datepicker-wrapper: ", datepicker_wrapper);
let mydate = document.createElement("input");
mydate.setAttribute('type', 'text');
mydate.setAttribute('style', 'margin-top:10px;');
datepicker_wrapper.appendChild(mydate);
console.log("mydate: ", mydate);
mydate.value = "oups";
$(mydate).datepicker({dateFormat: "yymmdd",});