Posted on 21/08/2025 11:49:56
							
							
						 
						Hi Nicolai,
Thanks for the reply :)
You´re correct, you would have to add some javascript to manually set the value of the input like:
    const today = new Date();
    const yyyy = today.getFullYear();
    const mm = String(today.getMonth() + 1).padStart(2, "0");
    const dd = String(today.getDate()).padStart(2, "0");
    const validFromInput = document.getElementById("ValidFrom") as HTMLInputElement | null;
    if (validFromInput) {
      validFromInput.value = `${yyyy}-${mm}-${dd}T00:00`;
    }
 
And you would have to read the TXX:XX value from a config somewhere in the admin, aaaaaand of course safeguard the value input by the user so you´re not reverting it to the default every time the datepicker is rendered.
Guess it smells a little "hacky".
Best regards,
Arnór