Julian Date for use in Document ID

Avatar

Avatar
Validate 1
Level 1
josh12468112
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
josh12468112
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

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

13-04-2015

Can anyone show me how I can convert a date field into a Julian date(YYDDD)? Essentially I just want to have this converted into a variable that I will concatenate with other values that will be used in generating unique doc ID.

Additionally anyone have thoughts on how I can ensure the doc ID is globally unique w/o using getUID?

I have never done anything with a Julian date before so I am at a loss.....

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

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

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

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

13-04-2015

Hi,

to display a julian date you can use the J symbol in your display pattern:

date{YYJ} to display January the 3rd 2015 as 153 (3rd day in 2015)

or

date{YYJJJ} to display January the 3rd 2015 as 15003 (with leading zeros)

To reuse the formatted Date in a script use the formattedValue instead of the rawValue.

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
josh12468112
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
josh12468112
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

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

13-04-2015

‌radzmar,

WOW!! That was a lot simpler than I thought it would be.

Thanks for the help.

J