Copy link to clipboard
Copied
Hello,
I have a date-text field. The format is mm.dd.yy
On a button click, I want to copy this date to another text field.
I'm using
this.getField("newfield").value= this.getField("Data").value;
The issue is that on the newfield, the date appears like mm.dd.yyyy
Any idea? Thank you.
Just found the issue. There was some code on a dropdown list that modifies the format.
Sorry for this.
Thank you.
Copy link to clipboard
Copied
In "newfield" is format set to 'none'?
How did you format "Data" field?
Copy link to clipboard
Copied
Yes, "newfield" format is set to none.
The Data field is
Select format category: Date > Custom - dd.mm.yy
Thanks.
Copy link to clipboard
Copied
Code should work. Do you have any other calculations in your file? Can you share file here?
Copy link to clipboard
Copied
Just found the issue. There was some code on a dropdown list that modifies the format.
Sorry for this.
Thank you.