Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Apr 23, 2019 11:53 AM UTC

You can use this code as the custom calculation script of "date2":

var s1 = this.getField("date1").valueAsString;

if (s1=="") event.value = "";

else {

    var d1 = util.scand("ddmmyyyy", s1);

    event.value = util.printd("d.m.yyyy", d1);

}

3 replies

Known Participant
Apr 23, 2019 12:52 PM UTC

Super! It works perfectly!

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Apr 23, 2019 11:53 AM UTC

You can use this code as the custom calculation script of "date2":

var s1 = this.getField("date1").valueAsString;

if (s1=="") event.value = "";

else {

    var d1 = util.scand("ddmmyyyy", s1);

    event.value = util.printd("d.m.yyyy", d1);

}

Translate
Participant
Oct 31, 2020 10:40 PM UTC

Oh my goodness, brilliant. Thanks so much.

Translate