Skip to main content
Inspiring
April 23, 2021
Answered

Issue copying date to another field

  • April 23, 2021
  • 1 reply
  • 1092 views

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.

This topic has been closed for replies.
Correct answer oanass

Code should work. Do you have any other calculations in your file? Can you share file here?


Just found the issue. There was some code on a dropdown list that modifies the format.

Sorry for this.

Thank you.

1 reply

Nesa Nurani
Community Expert
Community Expert
April 23, 2021

In "newfield" is format set to 'none'?

How did you format "Data" field?

oanassAuthor
Inspiring
April 23, 2021

Yes, "newfield" format is set to none.

The Data field is 

Select format category: Date > Custom - dd.mm.yy

 

Thanks.

Inspiring
April 23, 2021

Code should work. Do you have any other calculations in your file? Can you share file here?