Skip to main content
Okt. 4, 2019 2:47 PM UTC
Beantwortet

Help !! Me !!!!! Copy and paste a date for another date field. (Acrobat Pro DC)

I think it's a very simple question,

but I'm a beginner who has already spent two days on this issue.

 

①The date listed in the date field "Day_A"
②Read it in the date field "Day_B", list it there, and
③Write in a date field "Day_C".

 

There is a little reason and I have to follow the above steps.
I have to write these code only in "Day_B".

Of course all of these are Date fields.

 

Field "Day_A" and  Field "Day_C" can not for use.

Field “Day_A”  →  Field “Day_B” is easy.
Field “Day_B” → Field “Day_C”   I don’t know how to write the code to write to .

 

===

★The field where the code is written is "Day_B".

 

//Get date field DayA.

//Revert to date object.

var GetDayA = this.getField("Day_A").value;
var DayA = new Date(GetDayA);

 

                        //No need this code..
                        //var GetDayB = this.getField("Day_B").value;
                        //var DayB = new Date(GetDayB);

 

//Write to DayB.

DayB = util.printd("yyyy-mm-dd",DayA);

 

//Use "event.value" method to write to this DayB field.
event.value = DayB;

 

★It is from here that I do not know.

 

var GetDayC = this.getField("Day_C").value;
var DayC = new Date(GetDayC);
DayC = util.printd("yyyy-mm-dd",DayA);

and ....????

 

★How can I apply the same effect as "event.value" for the "Day_B" field to "Day_C"?

★Again, event.value cannot be used because this code must be written to the same location.

 

Please help me !!

Dieses Thema wurde für Antworten geschlossen.
JR Boulay
JR BoulayAntwort
Community Expert
Okt. 4, 2019 10:16 PM UTC

This great free tool may help you: Date Library for Adobe Acrobat 

Acrobate du PDF, InDesigner et Photoshopographe

4 Antworten

JR Boulay
Community Expert
JR BoulayCommunity ExpertAntwort
Community Expert
Okt. 4, 2019 10:16 PM UTC

This great free tool may help you: Date Library for Adobe Acrobat 

Übersetzen
Acrobate du PDF, InDesigner et Photoshopographe
Okt. 7, 2019 2:31 PM UTC
Thank you !!! Very Nice !!!!
Übersetzen
ls_rbls
Community Expert
Community Expert
Okt. 4, 2019 6:50 PM UTC

Hi,

 

See this thread and post back if you have a question https://community.adobe.com/t5/Acrobat/copy-date-to-field-with-different-formatting/m-p/10650441#M152900

Übersetzen
Technical Generalist
Okt. 7, 2019 2:31 PM UTC
Thank you !!!
Übersetzen