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

Problem calculating difference between dates

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

16-03-2011

I have two date fields Current date and Hire date. I also have a difference field.

The Current date is calculated and is displayed as 3/16/2011.

However, the hire date is displayed as 03/01/2011. Nothing is displayed in the difference field. However, if I remove the leading zero from the Hire date field, I get the correct difference.

How do I control the leading zero in one or the other date field?

Thanks,

MDawn

Replies

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,682 posts

Correct Reply

489 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,682 posts

Correct Reply

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

16-03-2011

Hi,

the look of a date can be controlled by a pattern.

date{M/D/YYYY} = 6/2/2011

date{MM/DD/YYYY}  = 06/02/2011

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

16-03-2011

I'll try that.

Thanks,

Margaret Dawn

630-850-1065

Avatar

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Validate 50
Level 3
mdawn50
Level 3

Likes

8 likes

Total Posts

346 posts

Correct Reply

6 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
mdawn50
Level 3

16-03-2011

The pattern worked to control the leading zero. Now I've discovered that the calculation works if I type the date directly in the field, but doesn't work if the date is

selected from the calendar icon.

Thanks,

MDawn