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

Number of days in a month

Avatar

Avatar
Validate 10
Level 2
Gene--O
Level 2

Likes

3 likes

Total Posts

76 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
Gene--O
Level 2

Likes

3 likes

Total Posts

76 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
Gene--O
Level 2

11-03-2011

I am creating a form with 2 date objects:

"Date1" is a date object in which the user will enter the first day of a given month "MM/DD/YYYY";

I need "Date2" to calculate the last day of the month from "Date1" "MM/DD/YYYY".

Obviously, the date displayed in Date2 will vary because the months have a different number of days, so I can't just say "+30". Can someone help me with a JavaScript for FomCalc code to accomplish this?

thanks!!!!

Gene-O

View Entire Topic

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,686 posts

Correct Reply

490 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

08-11-2011

Maybe you're display pattern is different to the pattern in the script.

Here's a working example form:

https://acrobat.com/#d=rqvjWvn5WIBrWD*GLDRgfA