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

how do I display today's date and a date 1 month from today in livecycle designer

Avatar

Avatar
Validate 1
Level 1
Peter_Miles
Level 1

Like

1 like

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Peter_Miles
Level 1

Like

1 like

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Peter_Miles
Level 1

30-06-2009

Hello,

Does anyone know how to display a future dates in 3 date fields that would be 1 month; 2 months and 3 months from today?

I am making a sales contract form and in a date field is today's date (which can be altered if the user needs to change it).  The javascript I have is:

if

(this.rawValue == null

){

var

msNow = (new

Date()).getTime();

var

d1 = new

Date(msNow);

this.rawValue

= util.printd("mmm/dd/yyyy",

d1);

}

else

{

this.rawValue

= rawValue;

}

Then in the next date field i need to display the date 1 month from today

The third date field 2 months from today

the fourth date filed 3 months from today.

Any suggestions would be greatly appreciated.

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
Peter_Miles
Level 1

Like

1 like

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Peter_Miles
Level 1

Like

1 like

Total Posts

10 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Peter_Miles
Level 1

02-07-2009

Hi Bruce,

Thanks, I do need it to be more exact and as I am a newbie to javascript I think I am having trouble assigning the correct "addmonth".  Maybe the synatx I put is incorrect or perhaps I have put the code into the wrong datetime field.  I have attached the file so you can see what I have done.  Could you please have a look??

thanks very much,

Peter