Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Date Function is not working in adobe reader

Avatar

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ronakp97773265
Level 1

02-07-2015

Hello Everyone ,

I have create a pdf file using adobe livecycle .

I add a below code .

var today = new Date();

this.rawValue = parseInt(today.getMonth()+1)+"/"+today.getDate()+"/"+today.getFullYear();

When i run a pdf file in adobe livecycle ,current date is filled in textfield using above code .

But , when i save this file and open in adobe reader or adobe acrobat pro , then above code is not working (not giving error).

Please check review problem and give a solution .

Thanks in advance ,

Ronak Patel

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

08-07-2015

Try formattedValue instead of rawValue.

rawValue

786982_pastedImage_0.png

formattedValue

786995_pastedImage_1.png

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ronakp97773265
Level 1

08-07-2015

It's working completely .

Avatar

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ronakp97773265
Level 1

08-07-2015

Thanks you very much  Sir .

Avatar

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ronakp97773265
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ronakp97773265
Level 1

08-07-2015

Hello Sir ,

I am using Adobe liveCycle ES2 and Adobe Reader 11.0 .

Above code is work , but if i am pass Datefield value to date object like below code then it give correct date into adobe live cycle but when i used in adobe reader then it give me invalid date .

I am attached two document , plea

My Code for below output : -

var ch=new Date(xfa.resolveNode("form1.page1.DateTimeField1").rawValue);

  app.alert(ch);

se find and replay me .adobereader.png

Thanks and regards ,

Ronak Pateladobelivecycle.png

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

02-07-2015

This seems to work just fine for me. What version of LC, Reader, and Acrobat are you using?

LC ES3, Preview

784701_pastedImage_0.png  784705_pastedImage_5.png

Reader XI, Acrobat X

784703_pastedImage_2.png784704_pastedImage_3.png